source: Main/trunk/Common/Makefile@ 358

Last change on this file since 358 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
RevLine 
[2]1# $Id: Makefile 322 2024-10-14 17:41:06Z nishi $
2
[212]3OBJ=o
4STATIC=a
[218]5AR_FLAGS=rcs
[215]6AR_PROC=cat
[322]7AR_USUAL=rcs
[2]8include $(PWD)/Platform/$(PLATFORM).mk
9
10.PHONY: all clean
[212]11.SUFFIXES: .c .$(OBJ)
[2]12
[212]13OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
[2]14
[212]15all: common.$(STATIC)
[2]16
[218]17common.a: $(OBJS)
[255]18 rm -f common.a
[322]19 $(AR) $(AR_USUAL) $@ `echo $(OBJS) | $(AR_PROC)`
20 $(MAYBE_RANLIB)
[218]21
22common.lib: $(OBJS)
[255]23 rm -f common.lib
[215]24 $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
[2]25
[212]26.c.$(OBJ):
[2]27 $(CC) $(CFLAGS) -c -o $@ $<
28
29clean:
[215]30 rm -f *.o *.a *.lib *.obj
Note: See TracBrowser for help on using the repository browser.