From: Dale Weiler Date: Thu, 25 Apr 2013 03:11:50 +0000 (+0000) Subject: Use the LIBS properly X-Git-Tag: before-library~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bfbb60bbed91ef38b7cde9c9653e576d41d2effb;p=xonotic%2Fgmqcc.git Use the LIBS properly --- diff --git a/Makefile b/Makefile index 8f4fb96..77c805d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang # linker flags and optional additional libraries if required LDFLAGS := -LIBS := +LIBS := -lm CFLAGS += -Wall -Wextra -Werror -I. -fno-strict-aliasing -fsigned-char $(OPTIONAL) ifneq ($(shell git describe --always 2>/dev/null),) @@ -179,13 +179,13 @@ exec-standalone.o: exec.c $(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS) -DQCVM_EXECUTOR=1 $(QCVM): $(OBJ_X) - $(CC) -o $@ $^ $(LDFLAGS) -lm $(LIBS) + $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) $(GMQCC): $(OBJ_C) $(OBJ_D) - $(CC) -o $@ $^ $(LDFLAGS) -lm $(LIBS) + $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) $(TESTSUITE): $(OBJ_T) - $(CC) -o $@ $^ $(LDFLAGS) -lm $(LIBS) + $(CC) -o $@ $^ $(LDFLAGS) $(LIBS) $(PAK): $(OBJ_P) $(CC) -o $@ $^ $(LDFLAGS) @@ -198,7 +198,7 @@ test: all @ ./$(TESTSUITE) clean: - rm -f *.o $(GMQCC) $(QCVM) $(TESTSUITE) $(PAK) *.dat gource.mp4 + rm -f *.o $(GMQCC) $(QCVM) $(TESTSUITE) $(PAK) *.dat gource.mp4 *.exe splint: @ splint $(SPLINTFLAGS) *.c *.h