liboptcfg

diff example/Makefile @ 1:8fd2858c6a29

example (test) program
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Nov 2015 14:12:30 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/example/Makefile	Sat Nov 14 14:12:30 2015 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +obj = example.o
     1.5 +bin = example
     1.6 +
     1.7 +CFLAGS = -pedantic -Wall -g
     1.8 +LDFLAGS = -loptcfg
     1.9 +
    1.10 +$(bin): $(obj)
    1.11 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.12 +
    1.13 +.PHONY: clean
    1.14 +clean:
    1.15 +	rm -f $(obj) $(bin)