Subversion Repositories Tewi

Rev

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

Rev 184 Rev 197
Line 1... Line 1...
1
# $Id: Makefile 184 2024-09-27 19:19:56Z nishi $
1
# $Id: Makefile 197 2024-09-29 07:13:35Z nishi $
2
 
2
 
3
PWD = `pwd`
3
PWD = `pwd`
4
PLATFORM = generic
4
PLATFORM = generic
5
PREFIX = /usr/local
5
PREFIX = /usr/local
6
MODULE = ./Module
6
MODULE = ./Module
Line 9... Line 9...
9
 
9
 
10
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
10
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
11
 
11
 
12
.PHONY: all format clean ./Server ./Common ./Module get-version
12
.PHONY: all format clean ./Server ./Common ./Module get-version
13
 
13
 
14
all: ./Server $(MODULE) ./Tool/genconf ./Tool/itworks
14
all: ./Server $(MODULE)
15
 
15
 
16
./Tool/option: ./Tool/option.c config.h
16
./Tool/option: ./Tool/option.c config.h
17
	cc -o $@ ./Tool/option.c
17
	cc -o $@ ./Tool/option.c
18
 
18
 
19
./Tool/genconf: ./Tool/genconf.c config.h
19
./Tool/genconf: ./Tool/genconf.c config.h
20
	cc -o $@ ./Tool/genconf.c
20
	cc -o $@ ./Tool/genconf.c
21
 
21
 
22
./Tool/itworks: ./Tool/itworks.c config.h
22
./Tool/itworks: ./Tool/itworks.c config.h
23
	cc -o $@ ./Tool/itworks.c
23
	cc -o $@ ./Tool/itworks.c
24
 
24
 
25
./Server:: ./Common ./Tool/option
25
./Server:: ./Common ./Tool/option ./Tool/genconf ./Tool/itworks
26
	$(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../`" EXTLIBS="`./Tool/option libs ../`" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`"
26
	$(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../`" EXTLIBS="`./Tool/option libs ../`" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`"
27
 
27
 
28
./Module:: ./Common
28
./Module:: ./Common
29
	$(MAKE) -C $@ $(FLAGS)
29
	$(MAKE) -C $@ $(FLAGS)
30
 
30