mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
22 lines
532 B
Makefile
22 lines
532 B
Makefile
|
|
# This is the default target, which will be built when
|
||
|
|
# you invoke make
|
||
|
|
.PHONY: all
|
||
|
|
all: hellostruct
|
||
|
|
|
||
|
|
# This rule tells make how to build hellostruct from hellostruct.cpp
|
||
|
|
hellostruct: hellostruct.cpp
|
||
|
|
g++ -g -o hellostruct hellostruct.cpp
|
||
|
|
|
||
|
|
# This rule tells make to copy hellostruct to the binaries subdirectory,
|
||
|
|
# creating it if necessary
|
||
|
|
.PHONY: install
|
||
|
|
install:
|
||
|
|
mkdir -p binaries
|
||
|
|
cp -p hellostruct binaries
|
||
|
|
|
||
|
|
# This rule tells make to delete hellostruct and hellostruct.o
|
||
|
|
.PHONY: clean
|
||
|
|
clean:
|
||
|
|
rm -f hellostruct hellostruct.o
|
||
|
|
|