Subversion Repositories Tewi

Rev

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

Rev 218 Rev 255
Line 1... Line 1...
1
# $Id: Makefile 218 2024-10-02 19:59:49Z nishi $
1
# $Id: Makefile 255 2024-10-04 04:08:58Z 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
Line 12... Line 12...
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)
16
common.a: $(OBJS)
-
 
17
	rm -f common.a
17
	$(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
18
	$(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
18
 
19
 
19
common.lib: $(OBJS)
20
common.lib: $(OBJS)
-
 
21
	rm -f common.lib
20
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
22
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
21
 
23
 
22
.c.$(OBJ):
24
.c.$(OBJ):
23
	$(CC) $(CFLAGS) -c -o $@ $<
25
	$(CC) $(CFLAGS) -c -o $@ $<
24
 
26