[07a747]: Makefile Maximize Restore History

Download this file

Makefile    30 lines (21 with data), 969 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
26
27
28
29
CC=$(CROSS_COMPILE)gcc
CFLAGS=-static -g -Wall -fPIC -mcpu=5208
INCLUDES=-I$(ROOTDIR)/include -I$(ROOTDIR)/user/lantronix/libcp
LDFLAGS=-static -g -fPIC -lshout -lvorbis -logg -lpthread -lconfig -lcp -lm
LIBRARIES=-L$(ROOTDIR)/user/lantronix/libcp -L$(ROOTDIR)/lib
SOURCES=oggs_app.c rs232.c config.c gen_playlist.c use_sighttpd.c checkconfig.c
OBJECTS=$(SOURCES:.c=.o)
all: $(SOURCES) oggs_app gen_playlist use_sighttpd checkconfig
oggs_app: oggs_app.o rs232.o config.o
$(CC) oggs_app.o rs232.o config.o $(LIBRARIES) $(LDFLAGS) -o $@
checkconfig: checkconfig.o
$(CC) checkconfig.o $(LIBRARIES) $(LDFLAGS) -o $@
gen_playlist: gen_playlist.o
$(CC) gen_playlist.o $(LIBRARIES) $(LDFLAGS) -o $@
use_sighttpd: use_sighttpd.o
$(CC) use_sighttpd.o $(LIBRARIES) $(LDFLAGS) -o $@
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
clean:
rm -rf *.o oggs_app.gdb oggs_app gen_playlist.gdb gen_playlist use_sighttpd.gdb use_sighttpd checkconfig checkconfig.gdb
romfs: