CC = gcc.exe
BIN = test01.exe \
test02.exe \
test03.exe
OBJ = $(BIN:.exe=.o)
CXXFLAGS = -lstdcxx -lm
RM = del
compile: $(BIN)
$(BIN): %.exe : %.o
$(CC) $< -o $@ $(CXXFLAGS)
$(OBJ): %.o : %.cpp
$(CC) -o $@ -c $< $(CXXFLAGS)
clean:
del *.exe del *.o
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment