Subversion Repositories Tewi

Rev

Rev 21 | Rev 215 | 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 212 2024-10-02 17:44:55Z nishi $
2
 
212 nishi 3
OBJ=o
4
STATIC=a
5
AR_FLAGS=rcs 
2 nishi 6
include $(PWD)/Platform/$(PLATFORM).mk
7
 
8
.PHONY: all clean
212 nishi 9
.SUFFIXES: .c .$(OBJ)
2 nishi 10
 
212 nishi 11
OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
2 nishi 12
 
212 nishi 13
all: common.$(STATIC)
2 nishi 14
 
212 nishi 15
common.$(STATIC): $(OBJS)
16
	$(AR) $(AR_FLAGS)$@ $(OBJS)
2 nishi 17
 
212 nishi 18
.c.$(OBJ):
2 nishi 19
	$(CC) $(CFLAGS) -c -o $@ $<
20
 
21
clean:
212 nishi 22
	rm -f *.o *.a *.lib