comparison level1/coco1/sys/makefile @ 2727:f4870404ccc9 lwtools-port

Adjusted makefile to populate inetd.conf with port number for telnet
author Boisy Pitre <boisy.pitre@nuance.com>
date Tue, 31 Jul 2012 13:56:20 -0500
parents 678c6848dc12
children 99fac4bd9c41
comparison
equal deleted inserted replaced
2726:3a6484c23f54 2727:f4870404ccc9
1 ifeq ($(PORT),) 1 ifeq ($(PORT),)
2 PORT=coco1 2 PORT=coco1
3 endif 3 endif
4 include $(NITROS9DIR)/rules.mak 4 include $(NITROS9DIR)/rules.mak
5 TELNET_PORT = 6803
5 6
6 vpath %.hp $(LEVEL1)/sys 7 vpath %.hp $(LEVEL1)/sys
7 8
8 DEPENDS = ./makefile 9 DEPENDS = ./makefile
9 10
10 SYSFILES = ../../sys/errmsg ../../sys/motd ../../sys/password ../../sys/inetd.conf 11 SYSFILES = ../../sys/errmsg ../../sys/motd ../../sys/password inetd.conf
11 HELPFILES = asm.hp attr.hp backup.hp binex.hp build.hp chd.hp \ 12 HELPFILES = asm.hp attr.hp backup.hp binex.hp build.hp chd.hp \
12 chx.hp cmp.hp cobbler.hp config.hp copy.hp cputype.hp date.hp \ 13 chx.hp cmp.hp cobbler.hp config.hp copy.hp cputype.hp date.hp \
13 dcheck.hp debug.hp ded.hp deiniz.hp del.hp deldir.hp devs.hp \ 14 dcheck.hp debug.hp ded.hp deiniz.hp del.hp deldir.hp devs.hp \
14 dir.hp dirsort.hp disasm.hp display.hp dmode.hp dsave.hp dump.hp echo.hp \ 15 dir.hp dirsort.hp disasm.hp display.hp dmode.hp dsave.hp dump.hp echo.hp \
15 edit.hp error.hp ex.hp exbin.hp format.hp free.hp gfx.hp \ 16 edit.hp error.hp ex.hp exbin.hp format.hp free.hp gfx.hp \
24 ALLOBJS = $(SYSFILES) $(HELPMSG) 25 ALLOBJS = $(SYSFILES) $(HELPMSG)
25 26
26 27
27 all: $(ALLOBJS) $(DEPENDS) 28 all: $(ALLOBJS) $(DEPENDS)
28 29
30 inetd.conf: $(LEVEL1)/sys/inetd.conf
31 @sed 's/%TELNET_PORT%/$(TELNET_PORT)/' $^ > $@
32
29 alldragon: $(ALLOBJS) 33 alldragon: $(ALLOBJS)
30 34
31 helpmsg: $(HELPFILES) 35 helpmsg: $(HELPFILES)
32 $(MERGE) $^ > $@ 36 $(MERGE) $^ > $@
33 37
34 clean: 38 clean:
35 $(RM) $(HELPMSG) 39 $(RM) $(HELPMSG) inetd.conf
36 40
37 showobjs: 41 showobjs:
38 @$(ECHO) $(ALLOBJS) 42 @$(ECHO) $(ALLOBJS)