Subversion Repositories shark

Rev

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

Rev Author Line No. Line
2 pj 1
#
2
# Dependency rules used to make a sub-library
3
#
4
 
5
.PHONY: all install clean cleanall depend
6
 
7
#
8
 
9
install:: all
10
	make -C .. copylibrary
11
 
12
all:: $(OBJS)
13
	$(AR) rs ../lib$(LIBRARY).a $(OBJS)
14
 
15
clean::
16
	$(RM) *.o
17
	$(RM) *.err
18
 
19
cleanall:: clean
20
	$(RM) deps
21
	$(RM) *.bak
22
	$(RM) *.~
23
	$(RM) *.?~
24
	$(RM) *.??~
25
 
26
depend::
65 pj 27
	$(CC) $(C_OPT) -M $(wildcard $(OBJS:.o=.c) $(OBJS:.o=.s)) > deps
2 pj 28
 
29
deps:
65 pj 30
	$(CC) $(C_OPT) -M $(wildcard $(OBJS:.o=.c) $(OBJS:.o=.s)) > deps
2 pj 31
 
32
ifneq ($(MAKECMDGOALS),clean)
33
ifneq ($(MAKECMDGOALS),cleanall)
34
include deps
35
endif
36
endif
37
 
38
#../lib$(LIBRARY).a: $(OBJS)
39
#	$(AR) rs ../lib$(LIBRARY).a $(OBJS)
40
 
41
 
42
 
43