diff options
author | Claudio Ciccani <klan@users.sourceforge.net> | 2006-05-31 17:02:45 +0000 |
---|---|---|
committer | Claudio Ciccani <klan@users.sourceforge.net> | 2006-05-31 17:02:45 +0000 |
commit | b18191cf306c255fe5eff7762fc8e419e043a621 (patch) | |
tree | f83208c8d975dad0047ee0a6755ecbcd12d346a7 /src/glut/directfb/Makefile | |
parent | 9400550c168f685e82a2ab7bfaf3344f985127ca (diff) |
Added DirectFB GLUT implementation.
Diffstat (limited to 'src/glut/directfb/Makefile')
-rw-r--r-- | src/glut/directfb/Makefile | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src/glut/directfb/Makefile b/src/glut/directfb/Makefile new file mode 100644 index 0000000000..9e3caaa5c2 --- /dev/null +++ b/src/glut/directfb/Makefile @@ -0,0 +1,86 @@ +# subset glut + +TOP = ../../.. +include $(TOP)/configs/current + +MARK = $(TOP)/src/glut/glx + +GLUT_MAJOR = 3 +GLUT_MINOR = 7 +GLUT_TINY = 1 + +INCLUDES = -I$(TOP)/include -I$(MARK) $(shell pkg-config --cflags directfb) + +GLUT_LIB_DEPS += $(shell pkg-config --libs directfb) + +CORE_SOURCES = \ + callback.c \ + color.c \ + cursor.c \ + ext.c \ + events.c \ + font.c \ + game.c \ + globals.c \ + init.c \ + menu.c \ + models.c \ + overlay.c \ + state.c \ + teapot.c \ + window.c \ + + +MARK_SOURCES = \ + $(MARK)/glut_8x13.c \ + $(MARK)/glut_9x15.c \ + $(MARK)/glut_hel10.c \ + $(MARK)/glut_hel12.c \ + $(MARK)/glut_hel18.c \ + $(MARK)/glut_tr10.c \ + $(MARK)/glut_tr24.c + +SOURCES = $(CORE_SOURCES) $(MARK_SOURCES) + +OBJECTS = $(SOURCES:.c=.o) + + +##### RULES ##### + +.c.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ + +.S.o: + $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@ + + +##### TARGETS ##### + +default: depend $(LIB_DIR)/$(GLUT_LIB_NAME) + + +# Make the library +$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS) + $(TOP)/bin/mklib -o $(GLUT_LIB) -linker '$(CC)' \ + -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \ + $(GLUT_LIB_DEPS) -install $(LIB_DIR) \ + $(MKLIB_OPTIONS) $(OBJECTS) + + +# Run 'make -f Makefile.solo dep' to update the dependencies if you change +# what's included by any source file. +depend: $(SOURCES) + touch depend + $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null + +# Emacs tags +tags: + etags `find . -name \*.[ch]` `find ../include` + + +# Remove .o and backup files +clean: depend + -rm -f depend + -rm -f *.o *~ *.o *~ *.so libglut.so.3.7 + +include depend |