summaryrefslogtreecommitdiffstats
path: root/arch/ppc/lib/Makefile
blob: 68b33f047a745652ce4b0b0fbb94a5153d3e4f35 (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
.c.s:
	$(CC) $(CFLAGS) -S $<
.s.o:
	$(AS) $(ASFLAGS) -o $*.o $<
.c.o:
	$(CC) $(CFLAGS) -c $<
.S.s:
	$(CPP) $(CFLAGS) -D__ASSEMBLY__ $< -o $*.s
.S.o:
	$(CPP) $(CFLAGS) -D__ASSEMBLY__ $< -o $*.s
	$(AS) $(ASFLAGS) -o $*.o $*.s
	rm $*.s

HOST_CC = gcc

L_TARGET = lib.o
L_OBJS  = checksum.o cksum_support.o string.o

${L_TARGET}: $(L_OBJS)
	$(LD) -r -o ${L_TARGET} $(L_OBJS)


fastdep:
	$(TOPDIR)/scripts/mkdep *.[Sch] > .depend

dep:
	$(CPP) -M *.S *.c > .depend

modules: 

dummy:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif