mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
makefile fix
This commit is contained in:
parent
b093b82473
commit
5afb2c672a
6
Makefile
6
Makefile
@ -1,10 +1,10 @@
|
|||||||
CC = g++
|
CC = g++
|
||||||
CCFLAGS = -std=c++11 -pthread -Iinclude -O3 -flto
|
CCFLAGS = -std=c++11 -pthread -Iinclude -O3 -flto
|
||||||
|
|
||||||
all: lib testlog
|
all: testlog
|
||||||
|
|
||||||
testlog: test.o lib
|
testlog: test.o lib
|
||||||
$(CC) -o $testlog test.o libc11log.a $(CCFLAGS)
|
$(CC) -o testlog test.o libc11log.a $(CCFLAGS)
|
||||||
|
|
||||||
lib: factory.o formatters.o line_logger.o os.o
|
lib: factory.o formatters.o line_logger.o os.o
|
||||||
ar rvs libc11log.a $^;
|
ar rvs libc11log.a $^;
|
||||||
@ -27,4 +27,4 @@ os.o: src/os.cpp
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm *.o
|
rm -f *.o testlog
|
||||||
|
Loading…
Reference in New Issue
Block a user