1 # ------------------------------------------------------------------------
4 # Thanks to Schwarzung for the help on making the original makefile system.
5 # ------------------------------------------------------------------------
7 # This has the target platform defined, this is modified by fix.bat or fix.sh
10 # Suggested by GNU Coding Stardards
13 # ===============================================
14 # Target binary name without extension
23 # Source code suffix (.c, .cpp, etc)
26 # Simple source code test file (must be in same dir as makefile for now) :(
27 # The extension will be taken from SRCSUF, don't put it!
29 # ===============================================
32 # -----------------------------
33 # -- Platform specific stuff --
34 # -----------------------------
39 ifeq ($(TARGET
),DJGPP
)
52 # If you need extra link options (like more librarys, add to LFLAGS var)
53 LFLAGS
= -s
-laldmb
-ldumb
-lalleg
56 CFLAGS
= -I
$(INCDIR
) -Wall
-O3
62 ifeq ($(TARGET
),MINGW32
)
73 # If you need extra link options (like more librarys, add to LFLAGS var)
74 LFLAGS
= -s
-mwindows
-laldmb
-ldumb
-lalleg
77 CFLAGS
= -I
$(INCDIR
) -Wall
-O3
83 ifeq ($(TARGET
),LINUX
)
94 # If you need extra link options (like more librarys, add to LFLAGS var)
95 LFLAGS
= -laldmb
-ldumb
`allegro-config --libs`
98 CFLAGS
= -I
$(INCDIR
) -Wall
-O3
101 # ---------------------------------
102 # -- Platform non-specific stuff --
103 # ---------------------------------
105 OBJDIR
= obj
/$(PLATFORMDIR
)
108 # -- The rules for build are in this file --