You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
709 B

  1. # sacc: saccomys gopher client
  2. # See LICENSE file for copyright and license details.
  3. .POSIX:
  4. include config.mk
  5. BIN = sacc
  6. MAN = $(BIN).1
  7. OBJ = $(BIN:=.o) ui_$(UI).o
  8. all: $(BIN)
  9. config.h:
  10. cp config.def.h config.h
  11. $(BIN): $(OBJ)
  12. $(CC) $(OBJ) $(LDFLAGS) $(LIBS) -o $@
  13. $(OBJ): config.h config.mk common.h
  14. clean:
  15. rm -f $(BIN) $(OBJ)
  16. install: $(BIN)
  17. mkdir -p $(DESTDIR)$(PREFIX)/bin/
  18. cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin/
  19. chmod 555 $(DESTDIR)$(PREFIX)/bin/$(BIN)
  20. mkdir -p $(DESTDIR)$(MANDIR)
  21. cp -f $(MAN) $(DESTDIR)$(MANDIR)
  22. uninstall:
  23. rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
  24. # Stock FLAGS
  25. SACCCFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE $(CFLAGS)
  26. .c.o:
  27. $(CC) $(SACCCFLAGS) -c $<