builds with clang

This commit is contained in:
Jeffrey Crowell 2022-06-20 15:20:10 -04:00
parent 4febaa32fa
commit 56718c47a8

View File

@ -102,7 +102,7 @@ LDLIBS := \
bz2 \ bz2 \
z \ z \
pthread \ pthread \
atomic \ storm \
ultraship \ ultraship \
) )
@ -119,7 +119,7 @@ endif
ifeq ($(UNAME), Darwin) #APPLE ifeq ($(UNAME), Darwin) #APPLE
LDLIBS += \ LDLIBS += \
$(addprefix -framework, \ $(addprefix -framework , \
OpenGL \ OpenGL \
) \ ) \
$(shell sdl2-config --libs) $(shell pkg-config --libs glew) $(shell sdl2-config --libs) $(shell pkg-config --libs glew)
@ -211,7 +211,7 @@ build/%.o: %.c
$(TARGET): $(LIBULTRASHIP) $(TARGET): $(LIBULTRASHIP)
$(TARGET): $(O_FILES) $(TARGET): $(O_FILES)
$(CXX) $^ -o $@ $(LDFLAGS) -fuse-ld=$(LD) $(LDDIRS) $(LDLIBS) $(CXX) $^ -o $@ $(LDFLAGS) $(LDDIRS) $(LDLIBS)
-include $(D_FILES) -include $(D_FILES)