TheAlgorithms-C-Plus-Plus/data_structure/stk/makefile

14 lines
221 B
Makefile
Raw Normal View History

2020-01-13 08:53:13 +08:00
CC= g++
CFLAGS = -c -Wall
2020-01-17 07:21:12 +08:00
all: main test_stack
2020-01-13 08:53:13 +08:00
stack.o: stack.cpp
$(CC) $(CFLAGS) stack.cpp
test_stack: stack.o
$(CC) test_stack.cpp stack.o -o stk
main: stack.o
$(CC) main.cpp stack.o -o main
clean:
rm *o stk main