Subversion Repositories Tewi

Rev

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

Rev Author Line No. Line
2 nishi 1
# $Id: Makefile 218 2024-10-02 19:59:49Z nishi $
2
 
212 nishi 3
OBJ=o
4
STATIC=a
218 nishi 5
AR_FLAGS=rcs
215 nishi 6
AR_PROC=cat
2 nishi 7
include $(PWD)/Platform/$(PLATFORM).mk
8
 
9
.PHONY: all clean
212 nishi 10
.SUFFIXES: .c .$(OBJ)
2 nishi 11
 
212 nishi 12
OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
2 nishi 13
 
212 nishi 14
all: common.$(STATIC)
2 nishi 15
 
218 nishi 16
common.a: $(OBJS)
17
	$(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
18
 
19
common.lib: $(OBJS)
215 nishi 20
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
2 nishi 21
 
212 nishi 22
.c.$(OBJ):
2 nishi 23
	$(CC) $(CFLAGS) -c -o $@ $<
24
 
25
clean:
215 nishi 26
	rm -f *.o *.a *.lib *.obj