Any good tutorials on how to write a makefile?

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

  1. addi33
    OP

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    ^above
     
  2. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

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

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    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
    653
    175
    May 29, 2016
    Spain
    Madrid
    It's a text file, you can modify it with sublime text, notepad, visual studio...
     
  5. addi33
    OP

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    I know. I mean the variables that I have to edit.
     
  6. Manurocker95

    Manurocker95 Game Dev & Pokémon Master

    Member
    653
    175
    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. addi33
    OP

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    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
    653
    175
    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
    653
    175
    May 29, 2016
    Spain
    Madrid