2004-03-26 15:19:11 +00:00
|
|
|
# progs/samples/Makefile
|
|
|
|
|
|
|
|
TOP = ../..
|
|
|
|
include $(TOP)/configs/current
|
|
|
|
|
|
|
|
INCDIR = $(TOP)/include
|
|
|
|
|
2006-07-13 03:50:27 +01:00
|
|
|
LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
2004-03-26 15:19:11 +00:00
|
|
|
|
2009-02-10 20:27:49 +00:00
|
|
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
2007-10-29 15:03:01 +00:00
|
|
|
|
2004-03-26 15:19:11 +00:00
|
|
|
PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
|
2004-08-14 11:03:11 +01:00
|
|
|
font line logo nurb olympic overlay point prim quad select \
|
2004-03-26 15:19:11 +00:00
|
|
|
shape sphere star stencil stretch texture tri wave
|
|
|
|
|
|
|
|
|
|
|
|
##### RULES #####
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c
|
|
|
|
|
|
|
|
.c: $(LIB_DEP)
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
|
2004-03-26 15:19:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
##### TARGETS #####
|
|
|
|
|
|
|
|
default: $(PROGS)
|
|
|
|
|
|
|
|
|
2005-01-08 23:51:50 +00:00
|
|
|
sphere: sphere.o readtex.o
|
2008-09-11 18:32:05 +01:00
|
|
|
$(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) sphere.o readtex.o $(LIBS) -o $@
|
2005-01-08 23:51:50 +00:00
|
|
|
|
|
|
|
sphere.o: sphere.c readtex.h
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) -c -I$(INCDIR) $(CFLAGS) sphere.c
|
2005-01-08 23:51:50 +00:00
|
|
|
|
2005-01-09 18:05:02 +00:00
|
|
|
readtex.c: $(TOP)/progs/util/readtex.c
|
|
|
|
cp $< .
|
2005-01-08 23:51:50 +00:00
|
|
|
|
2005-01-09 18:05:02 +00:00
|
|
|
readtex.h: $(TOP)/progs/util/readtex.h
|
|
|
|
cp $< .
|
2005-01-08 23:51:50 +00:00
|
|
|
|
|
|
|
readtex.o: readtex.c readtex.h
|
2008-09-11 18:00:54 +01:00
|
|
|
$(APP_CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@
|
2005-01-08 23:51:50 +00:00
|
|
|
|
|
|
|
|
2004-03-26 20:31:05 +00:00
|
|
|
clean:
|
2004-03-26 15:19:11 +00:00
|
|
|
-rm -f $(PROGS)
|
|
|
|
-rm -f *.o *~
|
2005-05-07 18:06:49 +01:00
|
|
|
-rm -f readtex.c readtex.h
|