source: Main/trunk/Common/Makefile@ 218

Last change on this file since 218 was 218, checked in by Nishi, on Oct 3, 2024 at 4:59:49 AM

fix build

  • Property svn:keywords set to Id
File size: 402 bytes
Line 
1# $Id: Makefile 218 2024-10-02 19:59:49Z 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 $(AR) rcs $@ `echo $(OBJS) | $(AR_PROC)`
18
19common.lib: $(OBJS)
20 $(AR) $(AR_FLAGS)$@ `echo $(OBJS) | $(AR_PROC)`
21
22.c.$(OBJ):
23 $(CC) $(CFLAGS) -c -o $@ $<
24
25clean:
26 rm -f *.o *.a *.lib *.obj
Note: See TracBrowser for help on using the repository browser.