summaryrefslogtreecommitdiffstats
path: root/mig_test/software/libhal/Makefile
blob: fe149c1bf02c02ef72dad361ed93a5a3e853fadb (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
#
# $HeadURL: https://svn.fzd.de/repo/concast/FWF_Projects/FWKE/hw_sp605/bsp_zpuahb/software/libhal/Makefile $
# $Date$
# $Author$
# $Revision$
#

DIR=..
include include.mak


C_FILES=hw.c common.c timer.c uart.c vga.c
OBJECTS=hw.o common.o timer.o uart.o vga.o
INCLUDES=../include/peripherie.h


all: libhal.a


libhal.a: $(OBJECTS) $(INCLUDES)
	$(AR) clr libhal.a $(OBJECTS)
	$(RANLIB) libhal.a


%.o: %.c $(INCLUDES)
	$(CC) -c -o $@ $< $(CFLAGS)


clean:
	rm -f *.o
	rm -f libhal.a
OpenPOWER on IntegriCloud