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
12 # Suggested by GNU Coding Stardards
15 # ===============================================
16 # Target binary name without extension
25 # Source code suffix (.c, .cpp, etc)
28 # Simple source code test file (must be in same dir as makefile for now) :(
29 # The extension will be taken from SRCSUF, don't put it!
31 # ===============================================
34 # -----------------------------
35 # -- Platform specific stuff --
36 # -----------------------------
41 ifeq ($(TARGET
),DJGPP
)
54 # If you need extra link options (like more librarys, add to LFLAGS var)
55 LFLAGS
= -s
-laldmb
-ldumb
-lalleg
58 CFLAGS
= -I
$(INCDIR
) -Wall
-O2
64 ifeq ($(TARGET
),MINGW32
)
75 # If you need extra link options (like more librarys, add to LFLAGS var)
76 LFLAGS
= -s
-mwindows
-laldmb
-ldumb
-lalleg
79 CFLAGS
= -I
$(INCDIR
) -Wall
-O2
85 ifeq ($(TARGET
),LINUX
)
96 # If you need extra link options (like more librarys, add to LFLAGS var)
97 LFLAGS
= -laldmb
-ldumb
`allegro-config --libs`
100 CFLAGS
= -I
$(INCDIR
) -Wall
-O2
103 # ---------------------------------
104 # -- Platform non-specific stuff --
105 # ---------------------------------
107 OBJDIR
= obj
/$(PLATFORMDIR
)
110 # -- The rules for build are in this file --