1 # Makefile for System Process Manager (SM)
12 # programs, flags, etc.
14 CFLAGS
= -I
$i $(CPROFILE
)
17 LIBS
= -lsys
-lsysutil
23 all build
: $(SERVER
) $(UTIL
)
25 $(CC
) -o
$@
$(LDFLAGS
) $(UTIL_OBJ
) $(UTIL_LIBS
)
27 $(CC
) -o
$@
$(LDFLAGS
) $(OBJ
) $(LIBS
)
29 # install with other servers
30 install: /bin
/$(UTIL
) /usr
/sbin
/$(SERVER
)
33 /usr
/sbin
/$(SERVER
): $(SERVER
)
34 install -o root
-c
$?
$@
36 # clean up local files
38 rm -f
$(UTIL
) $(SERVER
) *.o
*.bak
41 /usr
/bin
/mkdep
"$(CC) -E $(CPPFLAGS)" *.c
> .depend
43 # Include generated dependencies.