OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [Common/] [ethernet/] [FreeRTOS-uIP/] [Makefile.include] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 606 jeremybenn
 
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 $@ $^

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.