initial build system and template SDL/OpenGL demo

This commit is contained in:
josh committed 2013-02-14 22:52:26 -05:00
commit 56605c2900
3 files changed
+99

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
DC := gdc
TARGET := game
SOURCES := $(shell find src -iname '*.d')
OBJECTS := $(patsubst %.d,%.o,$(SOURCES))
DFLAGS := -I/usr/local/include/d
LDFLAGS := -lDerelictSDL -lDerelictGL -lDerelictGLU -lDerelictUtil -ldl -lGL -lGLU
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(DC) -o $@ $^ $(LDFLAGS)
%.o: %.d
$(DC) -o $@ $(DFLAGS) -c $^