eqemu

diff libs/libimago/test/Makefile @ 10:819c7ebb1bec

added libimago to avoid the external dependency
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 18 Jul 2014 05:07:40 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/libimago/test/Makefile	Fri Jul 18 05:07:40 2014 +0300
     1.3 @@ -0,0 +1,19 @@
     1.4 +obj = test.o
     1.5 +bin = test
     1.6 +
     1.7 +CC = gcc
     1.8 +CFLAGS = -pedantic -Wall -g -I../src
     1.9 +LDFLAGS = $(lib)
    1.10 +
    1.11 +ifeq ($(shell uname -s), Darwin)
    1.12 +	lib = ../libimago.dylib
    1.13 +else
    1.14 +	lib = ../libimago.so.2.0
    1.15 +endif
    1.16 +
    1.17 +$(bin): $(obj) $(lib)
    1.18 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	rm -f $(obj) $(bin)