source: Main/trunk/Server/Makefile@ 189

Last change on this file since 189 was 189, checked in by Nishi, on Sep 29, 2024 at 9:37:00 AM

will try to fix ps2 later

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Makefile 189 2024-09-29 00:37:00Z nishi $
2
3include $(PWD)/Platform/$(PLATFORM).mk
4
5.PHONY: all clean
6.SUFFIXES: .c .o
7
8OBJS = main.o version.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)
9
10all: tewi$(EXEC) $(TARGET)
11
12tewi_strip$(EXEC): tewi$(EXEC)
13
14tewi$(EXEC): $(OBJS) ../Common/common.a
15 $(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) ../Common/common.a $(LIBS)
16 $(SERVADD)
17
18tewi.pbp: tewi_strip$(EXEC) param.sfo
19 pack-pbp $@ param.sfo ../Binary/psp.png NULL NULL NULL NULL tewi_strip$(EXEC) NULL
20
21param.sfo:
22 mksfoex -d MEMSIZE=1 'Tewi HTTPd' $@
23
24tewi.self: tewi_strip$(EXEC)
25 sprxlinker tewi_strip$(EXEC)
26 make_self_npdrm tewi_strip$(EXEC) $@ UP0001-TEWI_00-0000000000000000
27 fself tewi_strip$(EXEC) tewi.fake.self
28
29tewi.pkg: tewi.self
30 mkdir -p pkg/USRDIR
31 cp /usr/local/ps3dev/bin/ICON0.PNG pkg/ICON0.PNG
32 make_self_npdrm tewi.elf pkg/USRDIR/EBOOT.BIN UP0001-TEWI_00-0000000000000000
33 sfo.py --title "Tewi HTTPd" --appid "TEWI" -f /usr/local/ps3dev/bin/sfo.xml pkg/PARAM.SFO
34 pkg.py --contentid UP0001-TEWI_00-0000000000000000 pkg/ $@
35 rm -rf pkg
36
37.c.o:
38 $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $<
39
40tewi.res: tewi.rc ../Binary/tewi.ico
41 $(WINDRES) tewi.rc -O coff -o $@
42
43clean:
44 rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg
Note: See TracBrowser for help on using the repository browser.