home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-11 | 990 b | 46 lines |
- #!smake
-
- include $(ROOT)/usr/include/make/commondefs
-
- SHELL = /bin/sh
-
- BASE = ../
- IMG_LIB = -limage
-
- GLUT_LIB = -lglut
- GLUT_INC = -I/usr/include/GL
-
- # NOTE: if the following "textured" option is removed and recompiled,
- # the program will draw the terrain with solid primary colors,
- # showing the size and position of tiled areas.
-
- LCDEFS = -DTEXTURED
- LCOPTS = -O2
- LCINCS = -I${BASE} $(GLUT_INC)
- LLDLIBS = $(GLUT_LIB) $(IMG_LIB) -lGL -lGLU -lX11 -lXmu -lm
-
- TARGET = Elevator
- TARGETS = .ofiles $(TARGET)
-
- CFILES = \
- Main.c \
- culling.c
-
- $(TARGET): default
-
- default:
- @ if test ! -d .ofiles; then mkdir -p .ofiles; fi
- @ echo "making OpenGL version of $(TARGET)"
- @ cd .ofiles; ${MAKE} -f ../Makefile $(TARGET).EXE
- @ rm -rf $(TARGET); ln -s .ofiles/$(TARGET).EXE $(TARGET)
- @ cat WARNING; touch core; chmod a-rw core
-
-
- include $(COMMONRULES)
-
- $(TARGET).EXE: $(OBJECTS)
- $(CCF) -o $(TARGET).EXE $(OBJECTS) $(LDFLAGS)
-
- $(OBJECTS): $(BASE)/$$(@:.o=.c) ../Makefile
- $(CCF) -c $(BASE)/$(@:.o=.c)
-