Subversion Repositories Tewi

Rev

Rev 255 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 255 Rev 322
Line 1... Line 1...
1
# $Id: Makefile 255 2024-10-04 04:08:58Z nishi $
1
# $Id: Makefile 322 2024-10-14 17:41:06Z nishi $
2
 
2
 
3
OBJ=o
3
OBJ=o
4
STATIC=a
4
STATIC=a
5
AR_FLAGS=rcs
5
AR_FLAGS=rcs
6
AR_PROC=cat
6
AR_PROC=cat
-
 
7
AR_USUAL=rcs
7
include $(PWD)/Platform/$(PLATFORM).mk
8
include $(PWD)/Platform/$(PLATFORM).mk
8
 
9
 
9
.PHONY: all clean
10
.PHONY: all clean
10
.SUFFIXES: .c .$(OBJ)
11
.SUFFIXES: .c .$(OBJ)
11
 
12
 
Line 13... Line 14...
13
 
14
 
14
all: common.$(STATIC)
15
all: common.$(STATIC)
15
 
16
 
16
common.a: $(OBJS)
17
common.a: $(OBJS)
17
	rm -f common.a
18
	rm -f common.a
18
	$(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
19
	$(AR) $(AR_USUAL) $@ `echo $(OBJS) | $(AR_PROC)`
-
 
20
	$(MAYBE_RANLIB)
19
 
21
 
20
common.lib: $(OBJS)
22
common.lib: $(OBJS)
21
	rm -f common.lib
23
	rm -f common.lib
22
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
24
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
23
 
25