1 # Makefile for Reincarnation Server (RS)
14 # programs, flags, etc.
16 CPPFLAGS
= -I..
/..
/kernel
/arch
/$(ARCH
)/include
17 CFLAGS
= -I
$i $(CPROFILE
) $(CPPFLAGS
)
19 LIBS
= -lsys
-lsysutil
22 OBJ
= exec.o main.o manager.o
25 all build
: $(SERVER
) $(UTIL
)
27 $(CC
) -o
$@
$(LDFLAGS
) $(UTIL_OBJ
) $(UTIL_LIBS
)
29 $(CC
) -o
$@
$(LDFLAGS
) $(OBJ
) $(LIBS
)
32 # install with other servers
33 install: /bin
/$(UTIL
) /usr
/sbin
/$(SERVER
)
36 /usr
/sbin
/$(SERVER
): $(SERVER
)
37 install -o root
-c
$?
$@
39 # clean up local files
41 rm -f
$(UTIL
) $(SERVER
) *.o
*.bak
44 mkdep
"$(CC) -E $(CPPFLAGS)" *.c
> .depend
46 # Include generated dependencies.