root/webserver/example/freeRTOSexample/Demo/Common/ethernet/FreeRTOS-uIP/Makefile.include

Revision 14, 1.0 kB (checked in by phil, 15 years ago)

added unmodified FreeRTOS package V5.4.1 with only web srv demo source for LPC2368 for CrossWorks?

Line 
1
2
3 ifdef APPS
4   APPDIRS = $(foreach APP, $(APPS), ../apps/$(APP))
5   -include $(foreach APP, $(APPS), ../apps/$(APP)/Makefile.$(APP))
6   CFLAGS += $(addprefix -I../apps/,$(APPS))
7 endif
8
9 ifndef CCDEP
10   CCDEP = $(CC)
11 endif
12 ifndef CCDEPCFLAGS
13   CCDEPCFLAGS = $(CFLAGS)
14 endif
15 ifndef OBJECTDIR
16   OBJECTDIR = obj
17 endif
18
19 ifeq (${wildcard $(OBJECTDIR)},)
20   DUMMY := ${shell mkdir $(OBJECTDIR)}
21 endif
22
23
24 vpath %.c . ../uip ../lib $(APPDIRS)
25
26 $(OBJECTDIR)/%.o: %.c
27         $(CC) $(CFLAGS) -c $< -o $@
28
29 $(OBJECTDIR)/%.d: %.c
30         @set -e; rm -f $@; \
31         $(CCDEP) -MM $(CCDEPCFLAGS) $< > $@.$$$$; \
32         sed 's,\($*\)\.o[ :]*,$(OBJECTDIR)/\1.o $@ : ,g' < $@.$$$$ > $@; \
33         rm -f $@.$$$$
34
35 UIP_SOURCES=uip.c uip_arp.c uiplib.c psock.c timer.c uip-neighbor.c
36
37
38 ifneq ($(MAKECMDGOALS),clean)
39 -include $(addprefix $(OBJECTDIR)/,$(UIP_SOURCES:.c=.d) \
40                                    $(APP_SOURCES:.c=.d))
41 endif
42
43 uip.a: ${addprefix $(OBJECTDIR)/, $(UIP_SOURCES:.c=.o)}
44         $(AR) rcf $@ $^
45
46 apps.a: ${addprefix $(OBJECTDIR)/, $(APP_SOURCES:.c=.o)}
47         $(AR) rcf $@ $^
Note: See TracBrowser for help on using the browser.