22
This commit is contained in:
21
lab_3/21_and_22/Makefile
Normal file
21
lab_3/21_and_22/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
binary = queens
|
||||
folder = queens
|
||||
objects = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
|
||||
|
||||
run: $(binary)
|
||||
./$(binary)
|
||||
|
||||
$(binary): $(objects)
|
||||
g++ -g3 -o $@ $^
|
||||
|
||||
%.o: %.cpp
|
||||
g++ -g3 -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
clear: clean
|
||||
rm -f *.zip $(binary)
|
||||
|
||||
zip: clean
|
||||
zip $(folder) Makefile *.cpp *.h
|
||||
Reference in New Issue
Block a user