source: Main/trunk/Common/Makefile@ 342

Last change on this file since 342 was 322, checked in by Nishi, on Oct 15, 2024 at 2:41:06 AM

trying to add nextstep support

  • Property svn:keywords set to Id
File size: 474 bytes
Line 
1# $Id: Makefile 322 2024-10-14 17:41:06Z nishi $
2
3OBJ=o
4STATIC=a
5AR_FLAGS=rcs
6AR_PROC=cat
7AR_USUAL=rcs
8include $(PWD)/Platform/$(PLATFORM).mk
9
10.PHONY: all clean
11.SUFFIXES: .c .$(OBJ)
12
13OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
14
15all: common.$(STATIC)
16
17common.a: $(OBJS)
18 rm -f common.a
19 $(AR) $(AR_USUAL) $@ `echo $(OBJS) | $(AR_PROC)`
20 $(MAYBE_RANLIB)
21
22common.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
29clean:
30 rm -f *.o *.a *.lib *.obj
Note: See TracBrowser for help on using the repository browser.