1 # ------------------------------------------------------------------------
4 # Copyright (c) 2003, 2004
5 # Thanks to Schwarzung for the help on making the original makefile system.
6 # ------------------------------------------------------------------------
8 # This has the target platform defined, this is modified by fix.bat or fix.sh
13 # Suggested by GNU Coding Stardards
16 # ===============================================
17 # Target binary name without extension
26 # Source code suffix (.c, .cpp, etc)
29 # Simple source code test file (must be in same dir as makefile for now) :(
30 # The extension will be taken from SRCSUF, don't put it!
32 # ===============================================
35 # -----------------------------
36 # -- Platform specific stuff --
37 # -----------------------------
42 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
)
74 # If you need extra link options (like more librarys, add to LFLAGS var)
75 LFLAGS
= -Wl
,--subsystem
,windows
-s
-laldmb
-ldumb
-lalleg
78 CFLAGS
= -I
$(INCDIR
) -Wall
-O2
84 ifeq ($(TARGET
),LINUX
)
94 # If you need extra link options (like more librarys, add to LFLAGS var)
95 LFLAGS
= -s
-laldmb
-ldumb
`allegro-config --libs`
98 CFLAGS
= -I
$(INCDIR
) -Wall
-O2
101 # ---------------------------------
102 # -- Platform non-specific stuff --
103 # ---------------------------------
105 OBJDIR
= obj
/$(PLATFORMDIR
)
108 # -- The rules for build are in this file --