|
Last change
on this file since 46 was
2,
checked in by phkim, 11 years ago
|
|
1.phkim
- revision copy newcon3sk r27
|
-
Property svn:executable set to
*
|
|
File size:
880 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | ifeq ($(MAKELEVEL),1) |
|---|
| 3 | # Base flags and variables for all modules |
|---|
| 4 | include platform.inc |
|---|
| 5 | endif |
|---|
| 6 | |
|---|
| 7 | ifndef TOPDIR |
|---|
| 8 | LIBDIR := $(shell cd ../lib ; /bin/pwd) |
|---|
| 9 | DTADIR := $(shell cd ../src ; /bin/pwd) |
|---|
| 10 | UCOSDIR := $(shell cd ../src/ucos_ii ; /bin/pwd) |
|---|
| 11 | else |
|---|
| 12 | LIBDIR := $(TOPDIR)/dta/lib |
|---|
| 13 | DTADIR := $(TOPDIR)/dta/src |
|---|
| 14 | UCOSDIR := $(TOPDIR)/dta/src/ucos_ii |
|---|
| 15 | endif |
|---|
| 16 | |
|---|
| 17 | CFLAGS += -I$(UCOSDIR) |
|---|
| 18 | |
|---|
| 19 | ifeq ($(BUILD_UCOS),y) |
|---|
| 20 | |
|---|
| 21 | CFLAGS += -I$(DTADIR) |
|---|
| 22 | |
|---|
| 23 | UCOS_SOURCES = $(UCOSDIR)/ucos_ii.c \ |
|---|
| 24 | $(UCOSDIR)/os_cpu_c.c \ |
|---|
| 25 | $(UCOSDIR)/os_cpu_a.S |
|---|
| 26 | |
|---|
| 27 | UCOS_OBJECTS = $(patsubst %.c,%.o,$(filter %.c,$(UCOS_SOURCES))) $(patsubst %.S,%.o,$(filter %.S,$(UCOS_SOURCES))) |
|---|
| 28 | |
|---|
| 29 | UCOS_DEPENDS = $(UCOS_OBJECTS:.o=.d) |
|---|
| 30 | |
|---|
| 31 | all : $(LIBDIR)/libucos_ii.a |
|---|
| 32 | |
|---|
| 33 | $(LIBDIR)/libucos_ii.a : $(UCOS_OBJECTS) |
|---|
| 34 | $(AR) $(ARFLAGS) $@ $? |
|---|
| 35 | |
|---|
| 36 | clean : clean_ucos |
|---|
| 37 | |
|---|
| 38 | clean_ucos : |
|---|
| 39 | $(RM) -f $(LIBDIR)/libucos_ii.a $(UCOS_OBJECTS) $(UCOS_DEPENDS) |
|---|
| 40 | |
|---|
| 41 | -include $(UCOS_DEPENDS) |
|---|
| 42 | endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.