Makefile: stop linking pthread stuff

This commit is contained in:
John 2022-04-22 21:06:30 -05:00
parent 8234aca2e0
commit 80e9c4bcd4

View File

@ -22,7 +22,7 @@ VPATH = $(SPATH) $(IPATH) $(DPATH) $(OPATH)
# compiler and compiler flags # compiler and compiler flags
CC = g++ CC = g++
CFLAGS = -I$(IPATH) -pthread -lrt -std=c++11 CFLAGS = -I$(IPATH) -std=c++11
# list of object files # list of object files
SOURCES = $(wildcard $(SPATH)/*.$(STYPE)) SOURCES = $(wildcard $(SPATH)/*.$(STYPE))
@ -55,7 +55,7 @@ $(DPATH) $(OPATH):
# Make the executable(s) # Make the executable(s)
%.out: $(OBJECTS) %.out: $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(CC) $(CFLAGS) -o "$@" $^
# Make the object and dependency files # Make the object and dependency files
$(OPATH)/%.o: $(SPATH)/%.$(STYPE) $(OPATH)/%.o: $(SPATH)/%.$(STYPE)
$(CC) $(CFLAGS) -MMD -MF "$(DPATH)/$(@F:.o=.d)" -o "$@" -c "$<" $(CC) $(CFLAGS) -MMD -MF "$(DPATH)/$(@F:.o=.d)" -o "$@" -c "$<"