fixed libs in makefile
This commit is contained in:
parent
639c8e8815
commit
bf0ceb5c1f
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user