Subversion Repositories Tewi

Rev

Rev 182 | Rev 187 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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