source: Main/trunk/Common/Makefile@ 315

Last change on this file since 315 was 255, checked in by Nishi, on Oct 4, 2024 at 1:08:58 PM

get listdir working [release 2.03E]

  • Property svn:keywords set to Id
File size: 436 bytes
RevLine 
[2]1# $Id: Makefile 255 2024-10-04 04:08:58Z nishi $
2
[212]3OBJ=o
4STATIC=a
[218]5AR_FLAGS=rcs
[215]6AR_PROC=cat
[2]7include $(PWD)/Platform/$(PLATFORM).mk
8
9.PHONY: all clean
[212]10.SUFFIXES: .c .$(OBJ)
[2]11
[212]12OBJS = string.$(OBJ) log.$(OBJ) dir.$(OBJ)
[2]13
[212]14all: common.$(STATIC)
[2]15
[218]16common.a: $(OBJS)
[255]17 rm -f common.a
[218]18 $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
19
20common.lib: $(OBJS)
[255]21 rm -f common.lib
[215]22 $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
[2]23
[212]24.c.$(OBJ):
[2]25 $(CC) $(CFLAGS) -c -o $@ $<
26
27clean:
[215]28 rm -f *.o *.a *.lib *.obj
Note: See TracBrowser for help on using the repository browser.