Sign in

gwj / po_oopc · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • po_oopc
  • examples11
  • 02-funptr
  • makefile
  • Casting examples
    bc59b51a
    Grzegorz Jabłoński authored
    2020-01-13 14:52:13 +0100  
    Browse Code »
makefile 310 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
all: funptr1 funptr2

funptr1: funptr1.o
	g++ -g -Wall -pedantic $^ -o $@

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

funptr2: funptr2.o
	g++ -g -Wall -pedantic $^ -o $@

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

.PHONY: clean

clean:
	-rm funptr1.o funptr1 funptr2.o funptr2