mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-24 02:23:10 +08:00
Add a simple class stack, and example
This commit is contained in:
13
data_structure/stk/makefile
Normal file
13
data_structure/stk/makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user