-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
47 lines (37 loc) · 911 Bytes
/
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
CFLAGS = -g -O0 -Wall -Icommon
LD = gcc
LDFLAGS =
LIBS = -Lcommon -lcommon -Ldis -ldis -lm -lGL -lEGL -lGLU -lSDL -lX11
RANLIB = ranlib
AR = ar
POVRAY = povray
PARTS = dots/dots tunneli/tun10 glenz/glenz plzpart/plzpart visu/c/u2e \
lens/lens techno/koe
all: common-all dis-all $(PARTS)
include common/Makefile
include visu/c/Makefile
include dis/Makefile
include glenz/Makefile
include tunneli/Makefile
include techno/Makefile
include lens/Makefile
include plzpart-gl/Makefile
include dots/Makefile
include water/Makefile
.SUFFIXES: .c .o .a .pov .png
.pov.png:
$(POVRAY) +W1024 +H768 $<
.c.o:
$(CC) -c $(CFLAGS) -o $*.o $<
$(PARTS): common/libcommon.a dis/libdis.a
clean:
rm -f core *~ $(OBJS) depend
depend:
@echo Generating dependencies...
@rm -f $@
@for i in $(OBJS); do \
j=`echo $$i | sed 's/\.o$$/.c/'`; \
$(CC) -MM -MT $$i $(CFLAGS) $$j >> $@; \
done
include depend