Skip to content
Snippets Groups Projects
Commit 96085988 authored by Jaewon Choi's avatar Jaewon Choi
Browse files

Add Makefile

parent a8d151b1
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,6 @@ CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
......
Makefile 0 → 100644
# For implementation
CC=gcc -std=c99
CFLAGS=-I./src -I./include
LIB=
OBJ=./src/utils.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
mysh: $(OBJ)
$(CC) -o $@ $^ ./src/main.c $(CFLAGS)
# For testing
CXX=g++ -std=c++11
TESTING_FLAGS=-I./tests/src -I./tests/include $(CFLAGS)
TESTING_LIB=-lgtest -lgtest_main -L./tests/lib -lpthread $(LIB)
TESTING_SRC=./tests/src/command_parsing_test.cc
TESTING_EXE=mysh-test
test: $(OBJ)
$(CXX) $(TESTING_FLAGS) -o $(TESTING_EXE) $(TESTING_SRC) $(OBJ) $(TESTING_LIB)
./$(TESTING_EXE)
clean:
rm -f $(TESTING_EXE) $(OBJ) mysh ./src/main.o
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment