Subversion Repositories freemyipod

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
160 theseven 1
#             __________               __   ___.
2
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
3
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
4
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
5
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
6
#                     \/            \/     \/    \/            \/
7
# $Id: Makefile 23982 2009-12-13 21:30:28Z bluebrother $
8
#
9
 
10
DIR = ../build/
11
OUT = $(DIR)libucl/
12
 
13
CROSS   ?= arm-none-eabi-
14
CC      := $(CROSS)gcc
15
AR      := $(CROSS)ar
16
RANLIB  := $(CROSS)ranlib
17
 
18
OBJS = $(OUT)/alloc.o $(OUT)/n2b_99.o $(OUT)/n2b_d.o $(OUT)/n2b_ds.o $(OUT)/n2b_to.o $(OUT)/n2d_99.o	\
19
	$(OUT)/n2d_d.o $(OUT)/n2d_ds.o $(OUT)/n2d_to.o $(OUT)/n2e_99.o $(OUT)/n2e_d.o $(OUT)/n2e_ds.o $(OUT)/n2e_to.o $(OUT)/ucl_crc.o	\
20
	$(OUT)/ucl_dll.o $(OUT)/ucl_init.o $(OUT)/ucl_ptr.o $(OUT)/ucl_str.o $(OUT)/ucl_util.o
21
 
22
$(DIR)/libucl.a: $(OBJS)
23
	@echo [AR]     $@
24
	@$(AR) ruv $@ $^
25
	@echo [RANLIB] $@
26
	@$(RANLIB) $@
27
 
28
$(OUT)/%.o: %.c
29
	@echo [CC]     $<
30
ifeq ($(shell uname),WindowsNT)
31
	@-if not exist $(subst /,\,$(dir $@)) md $(subst /,\,$(dir $@))
32
else
33
	@-mkdir -p $(dir $@)
34
endif
35
	@$(CC) $(CFLAGS) -c $< -o $@
36
 
37
clean:
38
	rm -f $(OUT)/libucl.a