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) all: $(TARGET)
$(TARGET): $(OBJS) $(TARGET): $(OBJS)
$(CC) $(LIBPATHS) $(LIBS) -o $@ $^ $(CC) $(LIBPATHS) -o $@ $^ $(LIBS)
%.o: %.cpp %.o: %.cpp
$(CC) $(CFLAGS) -lpthread -c $< $(CC) $(CFLAGS) -lpthread -c $<
clean: clean:
rm -rf $(TARGET) *.o rm -rf $(TARGET) *.o
all: run all: run
run: $(TARGET) build: $(TARGET)
run: build
./$(TARGET) ./$(TARGET)
pch: include/crow_all.h.gch pch: include/crow_all.h.gch
include/crow_all.h.gch: include/crow_all.h include/crow_all.h.gch: include/crow_all.h