fixed libs in makefile

This commit is contained in:
tux 2024-06-15 17:09:46 -04:00
parent 639c8e8815
commit bf0ceb5c1f

View File

@ -10,13 +10,14 @@ OBJS := $(patsubst %.cpp, %.o, $(SRCS))
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LIBPATHS) $(LIBS) -o $@ $^
$(CC) $(LIBPATHS) -o $@ $^ $(LIBS)
%.o: %.cpp
$(CC) $(CFLAGS) -lpthread -c $<
clean:
rm -rf $(TARGET) *.o
all: run
run: $(TARGET)
build: $(TARGET)
run: build
./$(TARGET)
pch: include/crow_all.h.gch
include/crow_all.h.gch: include/crow_all.h