Remove static label from joymnu functions
[kraptor.git] / makefile
blob6346f45b8705e5274324c369a60eb947b0f816d5
1 # ------------------------------------------------------------------------
2 # Generic makefile
3 # By Kronoman
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
8 #include target.os
10 TARGET = LINUX
12 # Suggested by GNU Coding Stardards
13 SHELL = /bin/sh
15 # ===============================================
16 # Target binary name without extension
17 BINARY = kraptor
19 # Source directory
20 SRCDIR = src
22 # Include directory
23 INCDIR = include
25 # Source code suffix (.c, .cpp, etc)
26 SRCSUF = .c
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!
30 TESTFILE = test
31 # ===============================================
34 # -----------------------------
35 # -- Platform specific stuff --
36 # -----------------------------
38 # ------------------
39 # DJGPP target
40 # ------------------
41 ifeq ($(TARGET),DJGPP)
43 PLATFORMDIR=djgpp
45 # compiler to invoque
46 GCC = gcc
47 # GPP = gxx
49 # Binary file suffix
50 BINSUF = .exe
51 # object suffix
52 OBJSUF = .o
54 # If you need extra link options (like more librarys, add to LFLAGS var)
55 LFLAGS = -s -laldmb -ldumb -lalleg
57 # Compiler flags
58 CFLAGS = -I$(INCDIR) -Wall -O2
59 endif
61 # ------------------
62 # MingW32
63 # ------------------
64 ifeq ($(TARGET),MINGW32)
66 PLATFORMDIR=mingw32
68 GCC = gcc
69 # GPP = g++
71 # Binary file suffix
72 BINSUF = _w32.exe
73 OBJSUF = .o
75 # If you need extra link options (like more librarys, add to LFLAGS var)
76 LFLAGS = -s -mwindows -laldmb -ldumb -lalleg
78 # Compiler flags
79 CFLAGS = -I$(INCDIR) -Wall -O2
80 endif
82 # ------------------
83 # Linux
84 # ------------------
85 ifeq ($(TARGET),LINUX)
87 PLATFORMDIR=linux
89 GCC = gcc
90 # GPP = g++
92 # Binary file suffix
93 BINSUF = _linux.bin
94 OBJSUF = .o
96 # If you need extra link options (like more librarys, add to LFLAGS var)
97 LFLAGS = -laldmb -ldumb `allegro-config --libs`
99 # Compiler flags
100 CFLAGS = -I$(INCDIR) -Wall -O2
101 endif
103 # ---------------------------------
104 # -- Platform non-specific stuff --
105 # ---------------------------------
107 OBJDIR = obj/$(PLATFORMDIR)
108 BINDIR = bin
110 # -- The rules for build are in this file --
111 include makefile.all