Subversion Repositories Tewi

Rev

Rev 212 | Rev 218 | 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 215 2024-10-02 19:24:43Z nishi $
2
 
212 nishi 3
OBJ=o
4
STATIC=a
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
 
212 nishi 16
common.$(STATIC): $(OBJS)
215 nishi 17
	$(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
2 nishi 18
 
212 nishi 19
.c.$(OBJ):
2 nishi 20
	$(CC) $(CFLAGS) -c -o $@ $<
21
 
22
clean:
215 nishi 23
	rm -f *.o *.a *.lib *.obj