| 1 |
CC = gcc |
| 2 |
CCOPTS = |
| 3 |
LIBS=-L/opt/local/lib |
| 4 |
INCLUDES=-I/opt/local/include |
| 5 |
|
| 6 |
all: expat libxml |
| 7 |
|
| 8 |
clean: |
| 9 |
rm -rf expat libxml iksemel *.o *.dSYM #must be recursive for Mac OS |
| 10 |
|
| 11 |
expat: expat.c Makefile |
| 12 |
$(CC) $(CCOPTS) $(LIBS) $(INCLUDES) -o expat -lexpat expat.c |
| 13 |
|
| 14 |
libxml: libxml.c Makefile |
| 15 |
$(CC) $(CCOPTS) $(LIBS) $(INCLUDES) `xml-config --cflags` `xml-config --libs` -o libxml libxml.c |
| 16 |
|
| 17 |
iksemel: iksemel.c Makefile |
| 18 |
$(CC) $(CCOPTS) $(LIBS) $(INCLUDES) -o iksemel -liksemel iksemel.c |
| 19 |
|
| 20 |
naive: naive.c Makefile |
| 21 |
$(CC) $(CCOPTS) $(LIBS) $(INCLUDES) -m64 -g -o naive naive.c |