Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[691dac]: Makefile Maximize Restore History

Download this file

Makefile    38 lines (25 with data), 1.1 kB

 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
30
31
32
33
34
35
36
37
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
OBJECTS=$(SOURCES:.c=.o)
all: $(SOURCES) oggs_app get_ipaddr use_sighttpd filecmp checkconfig get_stm8_version
oggs_app: $(OBJECTS)
$(CC) $(OBJECTS) $(LIBRARIES) $(LDFLAGS) -o $@
filecmp:
$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES) filecmp.c -o $@
checkconfig:
$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES) checkconfig.c -lconfig -o $@
get_ipaddr:
$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES) get_ipaddr.c -o $@
use_sighttpd:
$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES) use_sighttpd.c -lconfig -o $@
get_stm8_version:
$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES) get_stm8_version.c rs232.c -o $@
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
clean:
rm -rf *.o oggs_app.gdb oggs_app get_ipaddr.gdb get_ipaddr use_sighttpd.gdb use_sighttpd filecmp filecmp.gdb checkconfig checkconfig.gdb get_stm8_version get_stm8_version.gdb
romfs: