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.

29 lines
544 B

  1. CFLAGS=-Wall -W -g -D_GNU_SOURCE
  2. OBJS=$(subst .c,.o,$(wildcard *.c))
  3. BIN=main-menu
  4. LIBS=-ldebconfclient -ldebian-installer
  5. ifdef DEBUG
  6. CFLAGS:=$(CFLAGS) -DDODEBUG=1
  7. else
  8. CFLAGS:=$(CFLAGS) -Os -fomit-frame-pointer
  9. endif
  10. all: $(BIN)
  11. $(BIN): $(OBJS)
  12. $(CC) -o $(BIN) $(OBJS) $(LIBS)
  13. demo: $(BIN)
  14. ln -sf debian/templates main-menu.templates
  15. /usr/share/debconf/frontend ./$(BIN)
  16. rm -f main-menu.template
  17. # Size optimized binary target.
  18. small: CFLAGS:=-Os $(CFLAGS) -DSMALL
  19. small: clean $(BIN)
  20. ls -l $(BIN)
  21. clean:
  22. -rm -f $(BIN) $(OBJS) *~