source: Main/trunk/Common/Makefile@ 266

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