1 |
# |
2 |
# This file is part of Sargasso, http://zamez.org/sargasso |
3 |
# Licensed under the GNU General Public License, |
4 |
# http://www.opensource.org/licenses/gpl-license |
5 |
# |
6 |
|
7 |
OBJECTS = feed.o sargasso.o |
8 |
HEADERS = feed.h |
9 |
|
10 |
WARNFLAGS = -W -Wall -Wundef -Wpointer-arith -Wcast-qual \ |
11 |
-Wcast-align -Wwrite-strings -Wstrict-prototypes \ |
12 |
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \ |
13 |
-Wnested-externs -Winline -Wno-unused-parameter -Wuninitialized |
14 |
|
15 |
CC = /home/riscos/cross/bin/gcc |
16 |
CFLAGS = -std=c9x -D_BSD_SOURCE -D_POSIX_C_SOURCE -Driscos -DBOOL_DEFINED -O \ |
17 |
$(WARNFLAGS) -I/home/riscos/env/include \ |
18 |
-I/home/riscos/env/include/libxml2 -I.. -mpoke-function-name |
19 |
LDFLAGS = -L/home/riscos/env/lib -lxml2 -lucurl -lcares -lz -loslib -lrufl |
20 |
|
21 |
!Sargasso/!RunImage,ff8: $(OBJECTS) |
22 |
$(CC) -o $@ $(LDFLAGS) $^ |
23 |
|
24 |
%.o : %.c $(HEADERS) |
25 |
@echo "==> $<" |
26 |
@$(CC) -o $@ -c $(CFLAGS) $< |
27 |
|
28 |
clean: |
29 |
-rm *.o !Sargasso/!RunImage,ff8 |