URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [Common/] [ethernet/] [uIP/] [uip-1.0/] [uip/] [Makefile.include] - Rev 607
Go to most recent revision | Compare with Previous | Blame | View Log
ifdef APPS
APPDIRS = $(foreach APP, $(APPS), ../apps/$(APP))
-include $(foreach APP, $(APPS), ../apps/$(APP)/Makefile.$(APP))
CFLAGS += $(addprefix -I../apps/,$(APPS))
endif
ifndef CCDEP
CCDEP = $(CC)
endif
ifndef CCDEPCFLAGS
CCDEPCFLAGS = $(CFLAGS)
endif
ifndef OBJECTDIR
OBJECTDIR = obj
endif
ifeq (${wildcard $(OBJECTDIR)},)
DUMMY := ${shell mkdir $(OBJECTDIR)}
endif
vpath %.c . ../uip ../lib $(APPDIRS)
$(OBJECTDIR)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(OBJECTDIR)/%.d: %.c
@set -e; rm -f $@; \
$(CCDEP) -MM $(CCDEPCFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,$(OBJECTDIR)/\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
UIP_SOURCES=uip.c uip_arp.c uiplib.c psock.c timer.c uip-neighbor.c
ifneq ($(MAKECMDGOALS),clean)
-include $(addprefix $(OBJECTDIR)/,$(UIP_SOURCES:.c=.d) \
$(APP_SOURCES:.c=.d))
endif
uip.a: ${addprefix $(OBJECTDIR)/, $(UIP_SOURCES:.c=.o)}
$(AR) rcf $@ $^
apps.a: ${addprefix $(OBJECTDIR)/, $(APP_SOURCES:.c=.o)}
$(AR) rcf $@ $^
Go to most recent revision | Compare with Previous | Blame | View Log