minix/servers/rs/Makefile

47 lines
873 B
Makefile
Raw Normal View History

2005-08-23 13:31:32 +02:00
# Makefile for Reincarnation Server (RS)
SERVER = rs
UTIL = service
# directories
u = /usr
i = $u/include
s = $i/sys
m = $i/minix
b = $i/ibm
# programs, flags, etc.
CC = exec cc
CFLAGS = -I$i $(CPROFILE)
2005-08-23 13:31:32 +02:00
LDFLAGS = -i
UTIL_LIBS = -lsysutil -lsys
LIBS = -lsysutil -lsys
2005-08-23 13:31:32 +02:00
UTIL_OBJ = service.o
OBJ = exec.o main.o manager.o
2005-08-23 13:31:32 +02:00
# build local binary
all build: $(SERVER) $(UTIL)
$(UTIL): $(UTIL_OBJ)
$(CC) -o $@ $(LDFLAGS) $(UTIL_OBJ) $(UTIL_LIBS)
$(SERVER): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
2006-06-20 12:59:45 +02:00
install -S 64k $@
2005-08-23 13:31:32 +02:00
# install with other servers
install: /bin/$(UTIL) /usr/sbin/$(SERVER)
/bin/$(UTIL): $(UTIL)
install -c $? $@
/usr/sbin/$(SERVER): $(SERVER)
install -o root -c $? $@
# clean up local files
clean:
rm -f $(UTIL) $(SERVER) *.o *.bak
depend:
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
# Include generated dependencies.
include .depend