initial build system and template SDL/OpenGL demo
This commit is contained in:
commit
56605c2900
3 files changed
+99
No files matched your search
@@ -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 $^
|
||||
Reference in new issue
Block a user