summaryrefslogtreecommitdiffstats
path: root/uc_str912/prj_blinky_simple_startup/str91x_lib/Makefile
blob: e65be4d4ff59919010836b0cb04383068dff53c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# efsl library Makefile for STR910 by Giacomo Fazio and Antonio Nasca
# (based on efsl library makefile for AT91SAM7S by Martin Thomas)


MCU   = arm9e
#THUMB = -mthumb -mthumb-interwork
THUMB = 

LIBNAME = libSTR91x_lib.a

COPT= -mcpu=$(MCU) $(THUMB) -gdwarf-2 -Wall -Os 
INCLUDEDIRS=-Iinclude
CFLAGS=$(COPT) $(INCLUDEDIRS)
# gcc4 unused code-removal:
CFLAGS += -ffunction-sections -fdata-sections

CC=arm-elf-gcc
AR=arm-elf-ar
OBJCOPY=arm-elf-objcopy

OBJ=src/91x_adc.o       src/91x_ahbapb.o       src/91x_can.o      src/91x_dma.o
OBJ+=src/91x_emi.o      src/91x_fmi.o          src/91x_gpio.o     src/91x_i2c.o      src/91x_lib.o     src/91x_mc.o
OBJ+=src/91x_rtc.o      src/91x_scu.o          src/91x_ssp.o      src/91x_tim.o
OBJ+=src/91x_wdg.o      src/91x_wiu.o          src/91x_uart.o     src/91x_vic.o


all: lib

libandclean: lib srcclean

lib: $(OBJ)
	$(AR) rcs $(LIBNAME) $(OBJ)
	
srcclean :
	rm -f $(OBJ)

clean :
	rm -f $(OBJ) $(LIBNAME)
OpenPOWER on IntegriCloud