Sign in

gwj / po_oopc · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • po_oopc
  • examples09
  • 05-functionobject
  • makefile
  • Added example of list with iterator
    702f90c7
    Grzegorz Jabłoński authored
    2022-01-05 11:03:51 +0100  
    Browse File »
makefile 337 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
all: fun1 fun2 fun3

fun1: fun1.o
	g++ -g -Wall $^ -o $@

fun1.o: fun1.cpp
	g++ -g -c -Wall $< -o $@

fun2: fun2.o
	g++ -g -Wall $^ -o $@

fun2.o: fun2.cpp
	g++ -g -c -Wall $< -o $@

fun3.o: fun3.cpp
	g++ -std=c++11 -g -c -Wall $< -o $@

fun3: fun3.o
	g++ -g -Wall $^ -o $@

.PHONY: clean

clean:
	-rm fun1.o fun1 fun2.o fun2 fun3.o fun3