mirror of
https://github.com/meekrosoft/fff
synced 2026-01-23 00:15:59 +01:00
Add googletest library and update makefiles
This commit is contained in:
22
gtest/Makefile
Normal file
22
gtest/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
BUILD_DIR = ../build
|
||||
LIBS := -lpthread
|
||||
CPP_OBJS=$(BUILD_DIR)/gtest-all.o $(BUILD_DIR)/gtest-main.o
|
||||
|
||||
SOURCES=gtest-all.cc gtest-main.cc
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
$(BUILD_DIR)/%.o: %.cc
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: GCC C++ Compiler'
|
||||
g++ -I../ -O0 -g3 -Wall -c -o"$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
all: $(CPP_OBJS)
|
||||
|
||||
clean:
|
||||
-$(RM) $(CPP_OBJS)
|
||||
-@echo ' '
|
||||
|
||||
Reference in New Issue
Block a user