# Semaphore Server SERVER = ss # programs, flags, etc. CC = exec cc CFLAGS = -I/usr/include LDFLAGS = -i LIBS = -lsys -lsysutil OBJ = main.o semaforo.o # build local binary all build: $(SERVER) $(SERVER): $(OBJ) $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS) install -S 16k $@ # install with other servers install: $(SERVER) install -o root -c $? /sbin/$(SERVER) # clean up local files clean: rm -f $(SERVER) *.o *.bak depend: /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend # Include generated dependencies. include .depend