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
680 B

ifndef TARGETS
TARGETS=netcfg-dhcp netcfg-static netcfg
endif
LDOPTS=-ldebconfclient -ldebian-installer
PREFIX=$(DESTDIR)/usr/
CFLAGS=-W -Wall -Os
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
else
CFLAGS += -fomit-frame-pointer
endif
INSTALL=install
STRIPTOOL=strip
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment
all: $(TARGETS)
netcfg-dhcp netcfg-static netcfg: netcfg-dhcp.c netcfg-static.c netcfg.c netcfg-common.o
$(CC) $(CFLAGS) $@.c -o $@ $(INCS) $(LDOPTS) netcfg-common.o
$(STRIP) $@
netcfg-common.o: netcfg-common.c
$(CC) -c $(CFLAGS) netcfg-common.c -o $@ $(INCS)
clean:
rm -f netcfg-dhcp netcfg-static netcfg *.o