You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
268 B
23 lines
268 B
10 years ago
|
SOURCES=$(wildcard *.cpp)
|
||
|
OBJECTS=$(SOURCES:.cpp=.o)
|
||
|
CXX=g++
|
||
|
FLAGS=-c -w
|
||
|
|
||
|
default: test
|
||
|
|
||
|
all: test
|
||
|
|
||
|
.PHONY: test
|
||
|
test: $(OBJECTS)
|
||
|
echo "test called\n"
|
||
|
|
||
|
.PHONY: configure
|
||
|
configure:
|
||
|
echo "no configure required\n"
|
||
|
|
||
|
clean:
|
||
|
rm -rf *.o
|
||
|
|
||
|
.c.o:
|
||
|
$(CXX) $(FLAGS) $< -o $@
|