Subversion Repositories Tewi

Rev

Rev 212 | Rev 218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 212 Rev 215
Line 1... Line 1...
1
# $Id: Makefile 212 2024-10-02 17:44:55Z nishi $
1
# $Id: Makefile 215 2024-10-02 19:24:43Z 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
include $(PWD)/Platform/$(PLATFORM).mk
7
include $(PWD)/Platform/$(PLATFORM).mk
7
 
8
 
8
.PHONY: all clean
9
.PHONY: all clean
9
.SUFFIXES: .c .$(OBJ)
10
.SUFFIXES: .c .$(OBJ)
10
 
11
 
11
OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
12
OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
12
 
13
 
13
all: common.$(STATIC)
14
all: common.$(STATIC)
14
 
15
 
15
common.$(STATIC): $(OBJS)
16
common.$(STATIC): $(OBJS)
16
	$(AR) $(AR_FLAGS)$@ $(OBJS)
17
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
17
 
18
 
18
.c.$(OBJ):
19
.c.$(OBJ):
19
	$(CC) $(CFLAGS) -c -o $@ $<
20
	$(CC) $(CFLAGS) -c -o $@ $<
20
 
21
 
21
clean:
22
clean:
22
	rm -f *.o *.a *.lib
23
	rm -f *.o *.a *.lib *.obj