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.

26 lines
487 B

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