Use an absolute directory in /usr/share/games/ for game data
[kball.git] / makefile
blobde72675277c24d0b341686e60583d43fdf66ccf7
1 # ------------------------------------------------------------------------
2 # KBall makefile
3 # By Kronoman
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
9 #include target.os
11 TARGET = LINUX
13 # Suggested by GNU Coding Stardards
14 SHELL = /bin/sh
16 # ===============================================
17 # Target binary name without extension
18 BINARY = kball
20 # Source directory
21 SRCDIR = src
23 # Include directory
24 INCDIR = include
26 # Source code suffix (.c, .cpp, etc)
27 SRCSUF = .cpp
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!
31 TESTFILE = test
32 # ===============================================
35 # -----------------------------
36 # -- Platform specific stuff --
37 # -----------------------------
39 # ------------------
40 # DJGPP target
41 # ------------------
42 ifeq ($(TARGET),DJGPP)
44 PLATFORMDIR=djgpp
46 # compiler to invoque
47 GCC = gxx
49 # Binary file suffix
50 BINSUF = dos.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 = g++
70 # Binary file suffix
71 BINSUF = _w32.exe
72 OBJSUF = .o
74 # If you need extra link options (like more librarys, add to LFLAGS var)
75 LFLAGS = -Wl,--subsystem,windows -s -laldmb -ldumb -lalleg
77 # Compiler flags
78 CFLAGS = -I$(INCDIR) -Wall -O2
79 endif
81 # ------------------
82 # Linux
83 # ------------------
84 ifeq ($(TARGET),LINUX)
86 PLATFORMDIR=linux
88 GCC = g++
90 # Binary file suffix
91 BINSUF = _linux.bin
92 OBJSUF = .o
94 # If you need extra link options (like more librarys, add to LFLAGS var)
95 LFLAGS = -s -laldmb -ldumb `allegro-config --libs`
97 # Compiler flags
98 CFLAGS = -I$(INCDIR) -Wall -O2
99 endif
101 # ---------------------------------
102 # -- Platform non-specific stuff --
103 # ---------------------------------
105 OBJDIR = obj/$(PLATFORMDIR)
106 BINDIR = bin
108 # -- The rules for build are in this file --
109 include makefile.all