eqemu
view 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 source
1 obj = test.o
2 bin = test
4 CC = gcc
5 CFLAGS = -pedantic -Wall -g -I../src
6 LDFLAGS = $(lib)
8 ifeq ($(shell uname -s), Darwin)
9 lib = ../libimago.dylib
10 else
11 lib = ../libimago.so.2.0
12 endif
14 $(bin): $(obj) $(lib)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)