Subversion Repositories Tewi

Rev

Rev 128 | Rev 183 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 128 Rev 182
Line 1... Line 1...
1
# $Id: Makefile 128 2024-09-23 10:19:19Z nishi $
1
# $Id: Makefile 182 2024-09-27 12:55:12Z nishi $
2
 
2
 
3
include $(PWD)/Platform/$(PLATFORM).mk
3
include $(PWD)/Platform/$(PLATFORM).mk
4
 
4
 
5
.PHONY: all clean
5
.PHONY: all clean
6
.SUFFIXES: .c .o
6
.SUFFIXES: .c .o
7
 
7
 
8
OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)
8
OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)
9
 
9
 
10
all: tewi$(EXEC)
10
all: tewi$(EXEC) $(TARGET)
-
 
11
 
-
 
12
tewi_strip$(EXEC): tewi$(EXEC)
11
 
13
 
12
tewi$(EXEC): $(OBJS) ../Common/common.a
14
tewi$(EXEC): $(OBJS) ../Common/common.a
13
	$(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a
15
	$(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a
-
 
16
	$(SERVADD)
-
 
17
 
-
 
18
tewi.pbp: tewi_strip$(EXEC) param.sfo
-
 
19
	pack-pbp $@ param.sfo NULL NULL NULL NULL NULL tewi_strip$(EXEC) NULL
-
 
20
 
-
 
21
param.sfo:
-
 
22
	mksfoex -d MEMSIZE=1 'Tewi HTTPd' $@
14
 
23
 
15
.c.o:
24
.c.o:
16
	$(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
25
	$(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
17
 
26
 
18
tewi.res: tewi.rc ../Binary/tewi.ico
27
tewi.res: tewi.rc ../Binary/tewi.ico
19
	$(WINDRES) tewi.rc -O coff -o $@
28
	$(WINDRES) tewi.rc -O coff -o $@
20
 
29
 
21
clean:
30
clean:
22
	rm -f *.o tewi *.exe *.res
31
	rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp