[ba41e6]: Makefile Maximize Restore History

Download this file

Makefile    27 lines (19 with data), 581 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CC=$(CROSS_COMPILE)gcc
CFLAGS=-static -g -Wall -fPIC -mcpu=5208 -Os
INCLUDES=-I$(ROOTDIR)/include -Ilibcgi-1.0/src
LDFLAGS=-static -g -fPIC -lconfig -lcrypt -lcgi
LIBRARIES= -L$(ROOTDIR)/lib -Llibcgi-1.0/src
SOURCES=osoft.c settings.c
OBJECTS=$(SOURCES:.c=.o)
all: $(SOURCES) osoft.cgi libcgi
osoft.cgi: osoft.o settings.o libcgi
$(CC) osoft.o settings.o $(LIBRARIES) $(LDFLAGS) -o $@
m68k-uclinux-flthdr -s 8192 $@
libcgi:
make -C libcgi-1.0 all
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
clean:
rm -rf *.o osoft.cgi osoft.cgi.gdb
make -C libcgi-1.0 clean
romfs: