/[tewi]/Common/Makefile
ViewVC logotype

Annotation of /Common/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations)
Thu Oct 17 09:53:38 2024 UTC (4 weeks ago) by nishi
Branch: MAIN
CVS Tags: v2_05A, v2_05, HEAD
update

1 nishi 1.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

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev