Do not pass linker flags during compilation.

This commit is contained in:
Bartosz Taudul 2022-04-30 19:02:06 +02:00
parent 254e87cbac
commit d80ad500ee
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1,10 +1,11 @@
OPTFLAGS := -g3 -fmerge-constants
TRACYFLAGS :=
CFLAGS := $(OPTFLAGS) -Wall -DTRACY_ENABLE $(TRACYFLAGS) -rdynamic
CFLAGS := $(OPTFLAGS) -Wall -DTRACY_ENABLE $(TRACYFLAGS)
CXXFLAGS := $(CFLAGS) -std=gnu++11
DEFINES +=
INCLUDES :=
LIBS := -lpthread -ldl
LDFLAGS := -rdynamic
IMAGE := tracy_test
SRC := \
@ -30,7 +31,7 @@ all: $(IMAGE)
rm -f $@.$$$$
$(IMAGE): $(OBJ)
$(CXX) $(CXXFLAGS) $(DEFINES) $(OBJ) $(LIBS) -o $@
$(CXX) $(CXXFLAGS) $(DEFINES) $(OBJ) $(LIBS) $(LDFLAGS) -o $@
ifneq "$(MAKECMDGOALS)" "clean"
-include $(SRC:.cpp=.d)