mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
14 lines
227 B
Makefile
14 lines
227 B
Makefile
CC= g++
|
|
CFLAGS = -c -Wall
|
|
|
|
all: clean main test_stack
|
|
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
|