10 lines
221 B
Makefile

TARGET := sdl_opengl_bare
DFLAGS := -I/usr/local/include/d -g
LDFLAGS := -lDerelictSDL -lDerelictGL -lDerelictGLU -lDerelictUtil -ldl -lGL -lGLU
all: $(TARGET)
$(TARGET): $(TARGET).d
gdc -o $@ $(DFLAGS) $^ $(LDFLAGS)