-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
47 lines (36 loc) · 1.31 KB
/
makefile
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
CC = gcc -pthread
CFLAGS = -g -Wall `sdl-config --cflags`
BMECONV = ../bme/bmeconv
LIBS = -L../bme -lbme -lm `sdl-config --libs`
all: ../missions/original.blk ../missions/test.blk ../data/bofh.pal \
../data/splash.pal ../data/splash.raw ../data/title.spr \
../data/player.spr ../data/weapon.spr ../data/machine.spr \
../data/fistman.spr ../data/gunman.spr ../data/shotgman.spr \
../data/uziman.spr ../data/tech.spr ../data/closet.spr \
../data/leader.spr ../data/sadist.spr ../data/bigfnt.spr \
../data/smallfnt.spr ../data/blackfnt.spr ../data/editor.spr ../bofh \
../bofhedit
.PHONY: all
../bofh: actor.o bofh.o bomb.o enemy.o hiscore.o init.o sincos.o
$(CC) $^ $(LIBS) -o$@
../bofhedit: bofhedit.o endian.o
$(CC) $^ $(LIBS) -o$@
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
../missions/original.blk: bofhblk.lbm
$(BMECONV) -b -t255 -r254 -h253 $< $@
../missions/test.blk: bofhblk.lbm
$(BMECONV) -b -t255 -r254 -h253 $< $@
../data/bofh.pal: bofhblk.lbm
$(BMECONV) -p $< $@
../data/%.pal: %.lbm
$(BMECONV) -p $< $@
../data/%.raw: %.lbm
$(BMECONV) -n $< $@
../data/%.spr: %.lbm
$(BMECONV) -s -t255 -r254 -h253 $< $@
clean:
rm -f ../bofh ../bofhedit *.o
rm -f ../missions/original.blk ../missions/test.blk
rm -f ../data/*.pal ../data/*.raw ../data/*.spr
.PHONY: clean