-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (55 loc) · 2.13 KB
/
Makefile
File metadata and controls
71 lines (55 loc) · 2.13 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
TSTR:= $(shell date +"%Y%m%d%H%M")
CC:= gcc `sdl-config --cflags` -O2 -Wall
LIBS:= `sdl-config --libs` -L/usr/X11R6/lib -lGL -lGLU
OBJS:= main.o input.o digits.o settings.o \
game.o game_matrix.o game_real.o game_astral.o \
scene.o scene_matrix.o scene_real.o scene_astral.o \
renderer.o renderer_matrix.o renderer_real.o renderer_astral.o
WCC:= win32-gcc `win32-exec sdl-config --cflags` -O2 -Wall
WLIBS:= `win32-exec sdl-config --libs` -lopengl32 -lglu32
WOBJS:= $(shell echo $(OBJS) | sed 's-\.o-.win32_o-g')
basic: x86
all: x86 win
x86: acidrain
win: acidrain.exe
clean: .
rm -f acidrain acidrain.* *.o *.win32_o
upload: all
scp acidrain warp:public_html/acidrain/i386/
scp acidrain.exe warp:public_html/acidrain/win32/
backup: tar
scp ~/c/archive/acidrain.$(TSTR).tar.gz stea@reactor:backup/
scp ~/c/archive/acidrain.$(TSTR).tar.gz stea@megatron:backup/
scp ~/c/archive/acidrain.$(TSTR).tar.gz stea@opal:backup/
tar: archive
archive: .
cd .. ; tar czhvf ~/c/archive/acidrain.$(TSTR).tar.gz \
acidrain/*.[hc] acidrain/Makefile \
acidrain/*.raw acidrain/*.csh
acidrain: $(OBJS)
$(CC) -s -o acidrain $(OBJS) $(LIBS)
acidrain.exe: $(WOBJS)
$(WCC) -s -o acidrain.exe $(WOBJS) $(WLIBS)
%.o: %.c
$(CC) -c $<
%.win32_o: %.c %.o
$(WCC) -c $< -o $@
#AUTO-GENERATED DEPS BELOW (gcc -MM *.c to regen)
digits.o: digits.c settings.h renderer.h scene.h digits.h font_fancy.h \
digits_seg.h
game.o: game.c scene.h game.h
game_astral.o: game_astral.c game.h scene.h
game_matrix.o: game_matrix.c scene.h scene_matrix.h game.h renderer.h
game_real.o: game_real.c game.h scene.h
input.o: input.c input.h scene.h settings.h renderer.h game.h digits.h
main.o: main.c settings.h renderer.h scene.h input.h
renderer.o: renderer.c settings.h renderer.h scene.h game.h
renderer_astral.o: renderer_astral.c renderer.h scene.h
renderer_matrix.o: renderer_matrix.c renderer.h scene.h game.h \
scene_matrix.h digits.h
renderer_real.o: renderer_real.c renderer.h scene.h
scene.o: scene.c scene.h
scene_astral.o: scene_astral.c scene.h
scene_matrix.o: scene_matrix.c scene.h scene_matrix.h
scene_real.o: scene_real.c scene.h
settings.o: settings.c digits.h renderer.h scene.h