7195fe3325
support by Rogier Meurs <rogier@meurs.org>.
42 lines
718 B
Makefile
42 lines
718 B
Makefile
# Makefile for Data Store Server (DS)
|
|
SERVER = ds
|
|
|
|
# directories
|
|
u = /usr
|
|
i = $u/include
|
|
s = $i/sys
|
|
m = $i/minix
|
|
b = $i/ibm
|
|
k = $u/src/kernel
|
|
p = $u/src/servers/pm
|
|
f = $u/src/servers/fs
|
|
|
|
# programs, flags, etc.
|
|
CC = exec cc
|
|
CFLAGS = -I$i $(CPROFILE)
|
|
LDFLAGS = -i
|
|
LIBS = -lsysutil -lsys
|
|
|
|
OBJ = main.o store.o
|
|
|
|
# build local binary
|
|
all build: $(SERVER)
|
|
$(SERVER): $(OBJ)
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
|
install -S 16k $@
|
|
|
|
# install with other servers
|
|
install: $(SERVER)
|
|
install -o root -c $? /sbin/$(SERVER)
|
|
# install -o root -cs $? $@
|
|
|
|
# clean up local files
|
|
clean:
|
|
rm -f $(SERVER) *.o *.bak
|
|
|
|
depend:
|
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
|
|
|
# Include generated dependencies.
|
|
include .depend
|
|
|