Any good tutorials on how to write a makefile?

Discussion in '3DS - Homebrew Development and Emulators' started by adrifcastr, Feb 14, 2017.

  1. adrifcastr
    OP

    adrifcastr GBAtemp Advanced Maniac

    Member
    1,795
    818
    Sep 12, 2016
    Germany
    ^above
     
  2. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    684
    181
    May 29, 2016
    Spain
    Madrid
    You mean from zero? cz you could always get one and modify it for your stuff xD
     
  3. adrifcastr
    OP

    adrifcastr GBAtemp Advanced Maniac

    Member
    1,795
    818
    Sep 12, 2016
    Germany
    I actualy also wouldn´t have a problem if anyone could tell me how i have to edit like one of devkipro´s makefiles, idc
     
  4. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    684
    181
    May 29, 2016
    Spain
    Madrid
    It's a text file, you can modify it with sublime text, notepad, visual studio...
     
  5. adrifcastr
    OP

    adrifcastr GBAtemp Advanced Maniac

    Member
    1,795
    818
    Sep 12, 2016
    Germany
    I know. I mean the variables that I have to edit.
     
  6. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    684
    181
    May 29, 2016
    Spain
    Madrid
    Oh, okay. You have to edit the variables you need in your homebrew:

    name of the app, author, romfs folder, data folder, libraries used in your hb...

    what do you wanna do?
     
  7. adrifcastr
    OP

    adrifcastr GBAtemp Advanced Maniac

    Member
    1,795
    818
    Sep 12, 2016
    Germany
    editing the makefile that was in devkitpro to a makefile that simply compiles main.c that is located at "C:\Users\Adrian\Desktop\C\main.c"
     
  8. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    684
    181
    May 29, 2016
    Spain
    Madrid
    As I said, you only need to set the variables that you need: where your info is saved, libraries and names. I'll make a noob friendly tutorial of how set up the environment in Visual Studio 15. Maybe you can get the clue there.
     
  9. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    684
    181
    May 29, 2016
    Spain
    Madrid