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.

28 lines
572 B

CFLAGS=-Wall -W -g -D_GNU_SOURCE
OBJS=$(subst .c,.o,$(wildcard *.c))
BIN=main-menu
LIBS=-ldebconfclient -ldebian-installer
ifdef DEBUG
CFLAGS:=$(CFLAGS) -DDODEBUG=1
endif
all: $(BIN)
$(BIN): $(OBJS)
$(CC) -o $(BIN) $(OBJS) $(LIBS)
demo: $(BIN)
22 years ago
ln -sf debian/templates main-menu.templates
/usr/share/debconf/frontend ./$(BIN)
rm -f main-menu.template
22 years ago
# Size optimized and stripped binary target.
small: CFLAGS:=-Os $(CFLAGS) -DSMALL
22 years ago
small: clean $(BIN)
22 years ago
strip --remove-section=.comment --remove-section=.note $(BIN)
ls -l $(BIN)
clean:
-rm -f $(BIN) $(OBJS) *~