minix/servers/sm/Makefile
2005-07-26 13:08:57 +00:00

40 lines
680 B
Makefile

# Makefile for System Process Manager (SM)
SERVER = sm
# directories
u = /usr
i = $u/include
s = $i/sys
m = $i/minix
b = $i/ibm
# programs, flags, etc.
CC = exec cc
CFLAGS = -I$i
LDFLAGS = -i
LIBS = -lsys -lsysutil
OBJ = sm.o manager.o
# build local binary
all build: $(SERVER)
$(SERVER): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
# install -S 256w $@
# install with other servers
install: /usr/sbin/$(SERVER)
/usr/sbin/$(SERVER): $(SERVER)
install -o root -c $? $@
# 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