2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for Information Server (IS)
|
|
|
|
SERVER = is
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
m = $i/minix
|
|
|
|
b = $i/ibm
|
|
|
|
k = $u/src/kernel
|
2005-06-07 16:43:35 +02:00
|
|
|
p = $u/src/servers/pm
|
|
|
|
f = $u/src/servers/fs
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
# programs, flags, etc.
|
|
|
|
CC = exec cc
|
|
|
|
CFLAGS = -I$i
|
|
|
|
LDFLAGS = -i
|
2005-07-19 15:21:51 +02:00
|
|
|
LIBS = -lsys -lsysutil
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-10-20 22:28:54 +02:00
|
|
|
OBJ = main.o dmp.o dmp_kernel.o dmp_pm.o dmp_fs.o dmp_rs.o dmp_ds.o
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all build: $(SERVER)
|
|
|
|
$(SERVER): $(OBJ)
|
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
2005-06-24 18:21:21 +02:00
|
|
|
# install -S 256w $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
# install with other servers
|
2005-08-04 21:23:03 +02:00
|
|
|
install: /sbin/$(SERVER)
|
|
|
|
/sbin/$(SERVER): $(SERVER)
|
2005-06-24 18:21:21 +02:00
|
|
|
install -o root -c $? $@
|
|
|
|
# install -o root -cs $? $@
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f $(SERVER) *.o *.bak
|
|
|
|
|
2005-06-24 18:21:21 +02:00
|
|
|
depend:
|
|
|
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-06-24 18:21:21 +02:00
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
2005-04-21 16:53:53 +02:00
|
|
|
|