1*61ba55bcSBaptiste Daroussin# PUBLIC DOMAIN - NO WARRANTY, see: 2*61ba55bcSBaptiste Daroussin# <http://creativecommons.org/publicdomain/zero/1.0/> 3*61ba55bcSBaptiste Daroussin# 4*61ba55bcSBaptiste Daroussin# Written in 2021 by Alfonso Sabato Siciliano 5*61ba55bcSBaptiste Daroussin 6*61ba55bcSBaptiste DaroussinOUTPUT = bsddialog 7*61ba55bcSBaptiste DaroussinSOURCES = bsddialog.c util_builders.c util_cli.c util_theme.c 8*61ba55bcSBaptiste DaroussinOBJECTS = $(SOURCES:.c=.o) 9*61ba55bcSBaptiste Daroussin 10*61ba55bcSBaptiste Daroussinifneq ($(ENABLEDEBUG),) 11*61ba55bcSBaptiste DaroussinCFLAGS += -g 12*61ba55bcSBaptiste Daroussinendif 13*61ba55bcSBaptiste DaroussinCFLAGS += -D_GNU_SOURCE -Wall -Wextra -I$(LIBPATH) 14*61ba55bcSBaptiste Daroussin 15*61ba55bcSBaptiste Daroussinifneq ($(DISABLERPATH),) 16*61ba55bcSBaptiste DaroussinLDFLAGS += -ltinfo -L$(LIBPATH) -lbsddialog 17*61ba55bcSBaptiste Daroussinelse 18*61ba55bcSBaptiste DaroussinLDFLAGS += -ltinfo -Wl,-rpath=$(LIBPATH) -L$(LIBPATH) -lbsddialog 19*61ba55bcSBaptiste Daroussinendif 20*61ba55bcSBaptiste Daroussin 21*61ba55bcSBaptiste DaroussinRM = rm -f 22*61ba55bcSBaptiste Daroussin 23*61ba55bcSBaptiste Daroussinall : $(OUTPUT) 24*61ba55bcSBaptiste Daroussin 25*61ba55bcSBaptiste Daroussin$(OUTPUT): $(OBJECTS) 26*61ba55bcSBaptiste Daroussin $(CC) $^ -o $@ $(LDFLAGS) 27*61ba55bcSBaptiste Daroussin 28*61ba55bcSBaptiste Daroussin 29*61ba55bcSBaptiste Daroussin%.o: %.c 30*61ba55bcSBaptiste Daroussin $(CC) $(CFLAGS) -c $< 31*61ba55bcSBaptiste Daroussin 32*61ba55bcSBaptiste Daroussinclean: 33*61ba55bcSBaptiste Daroussin $(RM) $(OUTPUT) *.o *~ 34