2003-01-02 16:13:27 +03:00
|
|
|
# $Id: makefile,v 1.12 2003/01/02 13:13:27 bursa Exp $
|
2002-07-28 01:10:45 +04:00
|
|
|
|
2002-12-30 17:33:49 +03:00
|
|
|
all: !NetSurf/!RunImage,ff8
|
2002-07-28 01:10:45 +04:00
|
|
|
clean:
|
2002-12-30 17:30:20 +03:00
|
|
|
rm */arm-riscos-aof/*
|
2003-01-02 16:13:27 +03:00
|
|
|
|
|
|
|
setup: render/arm-riscos-aof riscos/arm-riscos-aof desktop/arm-riscos-aof
|
2002-12-30 17:30:20 +03:00
|
|
|
%/arm-riscos-aof:
|
|
|
|
mkdir $@
|
2002-07-28 01:10:45 +04:00
|
|
|
|
2002-09-11 18:24:02 +04:00
|
|
|
FLAGS = -g -Wall -W -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-qual \
|
2002-07-28 01:10:45 +04:00
|
|
|
-Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes -Wmissing-prototypes \
|
|
|
|
-Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -std=c9x \
|
2002-12-30 17:30:20 +03:00
|
|
|
-I.. -I/usr/local/riscoslibs/include \
|
2002-10-08 13:38:29 +04:00
|
|
|
-Dfd_set=long -mpoke-function-name -DNETSURF_DUMP
|
2002-07-28 01:10:45 +04:00
|
|
|
CC = riscos-gcc
|
2002-12-30 17:30:20 +03:00
|
|
|
OBJECTS = render/arm-riscos-aof/utils.o render/arm-riscos-aof/css.o \
|
|
|
|
render/arm-riscos-aof/css_enum.o render/arm-riscos-aof/box.o \
|
|
|
|
render/arm-riscos-aof/layout.o \
|
|
|
|
riscos/arm-riscos-aof/gui.o riscos/arm-riscos-aof/font.o \
|
|
|
|
riscos/arm-riscos-aof/theme.o \
|
|
|
|
desktop/arm-riscos-aof/browser.o desktop/arm-riscos-aof/fetch.o \
|
|
|
|
desktop/arm-riscos-aof/netsurf.o desktop/arm-riscos-aof/cache.o
|
2002-09-11 18:24:02 +04:00
|
|
|
HEADERS = render/box.h render/css.h render/css_enum.h \
|
|
|
|
render/layout.h render/utils.h riscos/font.h riscos/gui.h \
|
2002-10-15 14:41:12 +04:00
|
|
|
riscos/theme.h \
|
2002-11-03 01:28:05 +03:00
|
|
|
desktop/browser.h desktop/fetch.h desktop/gui.h desktop/netsurf.h \
|
|
|
|
desktop/cache.h
|
2002-12-30 17:30:20 +03:00
|
|
|
LIBS = \
|
|
|
|
/usr/local/riscoslibs/libxml2/libxml2.ro \
|
|
|
|
/usr/local/riscoslibs/OSLib/OSLib.ro \
|
|
|
|
/usr/local/riscoslibs/curl/libcurl.ro \
|
|
|
|
/usr/local/riscoslibs/libutf-8/libutf-8.ro \
|
|
|
|
/usr/local/riscoslibs/ubiqx/ubiqx.ro
|
2002-07-28 01:10:45 +04:00
|
|
|
|
2003-01-02 16:13:27 +03:00
|
|
|
!NetSurf/!RunImage,ff8: $(OBJECTS)
|
2002-10-08 15:15:29 +04:00
|
|
|
$(CC) $(FLAGS) -o !NetSurf/!RunImage,ff8 $(OBJECTS) $(LIBS)
|
2002-07-28 01:10:45 +04:00
|
|
|
|
|
|
|
render/css_enum.c render/css_enum.h: render/css_enums render/makeenum
|
2002-12-30 17:30:20 +03:00
|
|
|
cd ..; /usr/bin/perl netsurf/render/makeenum netsurf/render/css_enum < netsurf/render/css_enums
|
2002-07-28 01:10:45 +04:00
|
|
|
|
2002-12-30 17:30:20 +03:00
|
|
|
render/arm-riscos-aof/%.o: render/%.c $(HEADERS)
|
2002-07-28 01:10:45 +04:00
|
|
|
$(CC) $(FLAGS) -o $@ -c $<
|
|
|
|
|
2002-12-30 17:30:20 +03:00
|
|
|
riscos/arm-riscos-aof/%.o: riscos/%.c $(HEADERS)
|
2002-07-28 01:10:45 +04:00
|
|
|
$(CC) $(FLAGS) -o $@ -c $<
|
2002-09-11 18:24:02 +04:00
|
|
|
|
2002-12-30 17:30:20 +03:00
|
|
|
desktop/arm-riscos-aof/%.o: desktop/%.c $(HEADERS)
|
2002-09-11 18:24:02 +04:00
|
|
|
$(CC) $(FLAGS) -o $@ -c $<
|
|
|
|
|
2002-10-12 17:05:16 +04:00
|
|
|
netsurf.zip: !NetSurf/!RunImage,ff8
|
2002-10-15 15:09:56 +04:00
|
|
|
rm netsurf.zip; riscos-zip -9vr, netsurf.zip !NetSurf
|
2002-10-12 17:05:16 +04:00
|
|
|
|