Subversion Repositories shark

Rev

Rev 1618 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
#
2
# GNU-C 32 bit makefile
3
#
4
 
5
HARTIK=$(BASE)
6
 
7
include $(HARTIK)/config/config.mak
8
 
9
# to remove
10
CP=cp
11
RM=rm -f
12
 
13
C_DEF += -D_THREAD_SAFE
14
#C_INC += -I.
15
 
16
#
17
# Device driver files
18
#
19
 
20
C_SRCS= anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c fixdfdi.c \
21
	fixsfdi.c fixunsdf.c fixunssf.c floatdid.c floatdis.c \
22
	floatuns.c iordi3.c lshldi3.c lshrdi3.c moddi3.c \
23
	muldi3.c negdi2.c notdi2.c subdi3.c adddi3.c qdivrem.c \
24
	ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
25
 
26
S_SRCS=
27
 
28
SRCS= $(C_SRCS) $(S_SRCS)
29
 
30
#
31
 
32
LIBNAME= c
33
 
34
#
35
# Finally the dependency rules!
36
#
37
 
38
.PHONY : all install depend clean allclean
39
 
40
 
41
#
42
 
43
all install: ../lib$(LIBNAME).a
44
 
45
depend deps:
46
	$(CC) $(C_OPT) -M $(C_SRCS) >deps
47
 
48
clean :
49
	-del *.o
50
	-del *.err
51
	-del *.a
52
 
53
allclean : clean
54
 
55
#
56
#
57
#
58
 
59
include deps
60
 
61
../lib$(LIBNAME).a : $(SRCS:.c=.o)
62
	ar rs ../lib$(LIBNAME).a $(SRCS:.c=.o)