Subversion Repositories Tewi

Rev

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

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