2009-09-21 16:53:13 +02:00
|
|
|
# Makefile for IPC server
|
|
|
|
SERVER = ipc
|
|
|
|
|
|
|
|
include /etc/make.conf
|
|
|
|
|
|
|
|
OBJ = main.o utility.o shm.o sem.o
|
|
|
|
|
|
|
|
CPPFLAGS=
|
|
|
|
CFLAGS = $(CPROFILE) $(CPPFLAGS)
|
|
|
|
|
|
|
|
# build local binary
|
|
|
|
|
|
|
|
all build: $(SERVER)
|
|
|
|
|
|
|
|
install: $(SERVER)
|
2010-02-16 15:41:33 +01:00
|
|
|
install -o root -c $(SERVER) /usr/sbin/$(SERVER)
|
2009-09-21 16:53:13 +02:00
|
|
|
|
|
|
|
$(SERVER): $(OBJ)
|
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) -lsys
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f $(SERVER) *.o *.bak
|
|
|
|
|
|
|
|
depend:
|
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
|
|
|
|
|
|
|
|