-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·45 lines (36 loc) · 1.09 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
CC = g++
CFLAGS = -g -Wall -m32
MKDEP=/usr/X11R6/bin/makedepend -Y
#INCLUDES = -I./common/include
ifeq ($(shell uname), Darwin)
GLLIBS = -framework OpenGL -framework GLUT
else
GLLIBS = -lGL -lGLU -lglut
endif
LIBS = -lc -lm -lexpat -lpng -ljpeg $(GLLIBS)
HDRS = xvec.h parseX3D.h image.h scene.h
SRCS = parseX3D.cpp image.cpp view3D.cpp
HDRS_SLN =
SRCS_SLN = scene.cpp
OBJS = $(patsubst %.cpp, %.o, $(SRCS)) $(patsubst %.cpp,%.o,$(SRCS_SLN))
view3D: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
%.o: %.cpp Makefile
$(CC) $(CFLAGS) $(INCLUDES) -c $<
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
.PHONY: clean
clean:
-rm -f -r $(OBJS) *.o *~ *core* view3D
depend: $(SRCS) $(SRCS_SLN) $(HDRS) $(HDRS_SLN) Makefile
$(MKDEP) $(CFLAGS) $(SRCS) $(SRCS_SLN) $(HDRS) $(HDRS_SLN) >& /dev/null
# prepare release folder: generate release srcs, hdrs, spec, and Makefile
$(ASGN):
-mkdir
# DO NOT DELETE
parseX3D.o: parseX3D.h scene.h xvec.h image.h
image.o: image.h
view3D.o: parseX3D.h scene.h xvec.h image.h
scene.o: image.h scene.h xvec.h
parseX3D.o: scene.h xvec.h image.h
scene.o: xvec.h image.h