summaryrefslogtreecommitdiffstats
path: root/progs/demos/Makefile
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-06-26 23:00:15 +0000
committerBrian Paul <[email protected]>2006-06-26 23:00:15 +0000
commit4e0617849c5c6f459f534dc4b2be51909e0755a4 (patch)
tree07a0e9cacb79b1f63e1e0d7e7170dabc5db92ecb /progs/demos/Makefile
parent96715484242760e771339a018ea187d7c7827588 (diff)
use trackball code for mouse rotation
Diffstat (limited to 'progs/demos/Makefile')
-rw-r--r--progs/demos/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/progs/demos/Makefile b/progs/demos/Makefile
index 87b5b84b3d7..74255819995 100644
--- a/progs/demos/Makefile
+++ b/progs/demos/Makefile
@@ -101,6 +101,16 @@ showbuffer.o: showbuffer.c showbuffer.h
$(CC) -c -I$(INCDIR) $(CFLAGS) showbuffer.c
+trackball.c: $(TOP)/progs/util/trackball.c
+ cp $< .
+
+trackball.h: $(TOP)/progs/util/trackball.h
+ cp $< .
+
+trackball.o: trackball.c trackball.h
+ $(CC) -c -I$(INCDIR) $(CFLAGS) trackball.c
+
+
reflect: reflect.o showbuffer.o readtex.o
$(CC) -I$(INCDIR) $(CFLAGS) reflect.o showbuffer.o readtex.o $(APP_LIB_DEPS) -o $@
@@ -114,6 +124,14 @@ shadowtex: shadowtex.o showbuffer.o
shadowtex.o: shadowtex.c showbuffer.h
$(CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c
+
+gloss: gloss.o trackball.o readtex.o
+ $(CC) -I$(INCDIR) $(CFLAGS) gloss.o trackball.o readtex.o $(APP_LIB_DEPS) -o $@
+
+gloss.o: gloss.c trackball.h
+ $(CC) -c -I$(INCDIR) $(CFLAGS) gloss.c
+
+
clean:
-rm -f $(PROGS)
-rm -f *.o *~