-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile.os2
57 lines (44 loc) · 1.6 KB
/
Makefile.os2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# David Joffe
# Copyright 1998-2024 David Joffe
# 1998/12
# makefile for Dave Gnukem
#
CPP = g++
CC = gcc
#CFLAGS = -O -Wall $(INCLUDEDIRS)
# Un/recomment as needed for removing sound support, optimizations etc
# If you don't -DDATA_DIR to a valid dir, then data files will be assumed
# to be in current directory
#CFLAGS = -Wall -I/@unixroot/usr/include -DHAVE_SOUND -DDEBUG -O -m486
CFLAGS = -DUSESDL $(INCLUDEDIRS) -I/@unixroot/usr/include
#Release version:
#CFLAGS = -O -Wall -I/@unixroot/usr/include -DHAVE_SOUND $(INCLUDEDIRS)
LIBS = -lSDL_mixer -lsdl -Zexe -lpthread
BIN = davegnukem.exe
OBJFILES = src/main.o src/graph.o src/game.o src/menu.o\
src/block.o src/credits.o src/instructions.o src/djstring.o \
src/djfonts.o src/djimage.o src/djlog.o src/inventory.o src/mission.o\
src/hiscores.o src/mixins.o src/thing.o src/hero.o \
src/thing_monsters.o src/gameending.o \
src/level.o src/settings.o src/keys.o \
src/djtypes.o src/bullet.o \
src/ed.o src/ed_DrawBoxContents.o src/ed_common.o src/ed_lvled.o \
src/ed_macros.o src/ed_spred.o \
src/sdl/djgraph.o src/sdl/djinput.o src/sdl/djsound.o \
src/sdl/djtime.o \
src/sys_error.o src/sys_log.o src/m_misc.o
default: gnukem
gnukem: $(OBJFILES)
$(CPP) -o $(BIN) $(OBJFILES) $(LIBS)
clean:
rm -f $(BIN) *~ core \#*
find src -name '*.o' | xargs rm -f
dist:
rm -f core *~ \#*
find src -name '*.o' | xargs rm -f
%.o: %.c
$(CPP) $(CFLAGS) -c $< -o $@
%.o: %.cpp
$(CPP) $(CFLAGS) -c $< -o $@
.PHONY: clean dist