ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/tewi/Common/Makefile
Revision: 1.1
Committed: Thu Oct 17 09:53:38 2024 UTC (4 weeks, 1 day ago) by nishi
Branch: MAIN
CVS Tags: v2_05A, v2_05, HEAD
Log Message:
update

File Contents

# Content
1 # $Id: Makefile 322 2024-10-14 17:41:06Z nishi $
2
3 OBJ=o
4 STATIC=a
5 AR_FLAGS=rcs
6 AR_PROC=cat
7 AR_USUAL=rcs
8 include $(PWD)/Platform/$(PLATFORM).mk
9
10 .PHONY: all clean
11 .SUFFIXES: .c .$(OBJ)
12
13 OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
14
15 all: common.$(STATIC)
16
17 common.a: $(OBJS)
18 rm -f common.a
19 $(AR) $(AR_USUAL) $@ `echo $(OBJS) | $(AR_PROC)`
20 $(MAYBE_RANLIB)
21
22 common.lib: $(OBJS)
23 rm -f common.lib
24 $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
25
26 .c.$(OBJ):
27 $(CC) $(CFLAGS) -c -o $@ $<
28
29 clean:
30 rm -f *.o *.a *.lib *.obj