:(
This commit is contained in:
@@ -95,7 +95,8 @@ test/level.c: ./import-test-collision.py
|
||||
|
||||
test/main.cpp test/gl20/gl20_renderer.c test/gl33core/gl33core_renderer.c: test/level.c
|
||||
|
||||
SDL2_CFLAGS := $(shell sdl2-config --cflags)
|
||||
SDL2_RAW_CFLAGS := $(shell sdl2-config --cflags)
|
||||
SDL2_CFLAGS := $(filter-out -Dmain=SDL_main,$(SDL2_RAW_CFLAGS))
|
||||
|
||||
$(BUILD_DIR)/test/%.o: test/%.c
|
||||
$(CC) -c $(CFLAGS) $(SDL2_CFLAGS) -I src/decomp/include -o $@ $<
|
||||
@@ -105,7 +106,7 @@ $(BUILD_DIR)/test/%.o: test/%.cpp
|
||||
|
||||
$(TEST_FILE): $(LIB_FILE) $(TEST_OBJS)
|
||||
ifdef WINDOWS_BUILD
|
||||
$(CXX) -o $@ $(TEST_OBJS) $(LIB_FILE) -lglew32 -lopengl32 -lSDL2 -lSDL2main -lm
|
||||
$(CXX) -o $@ $(TEST_OBJS) $(LIB_FILE) -lglew32 -lopengl32 -lSDL2 -lm
|
||||
else ifdef MACOS_BUILD
|
||||
$(CXX) -o $@ $(TEST_OBJS) $(LIB_FILE) -framework OpenGL -lGLEW -lSDL2 -lSDL2main -lm -lpthread
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user