Makefile (277B)
1 .POSIX: 2 NAME = bpaul-webgen 3 4 PREFIX = /usr/local 5 6 CC = cc 7 CFLAGS = -W -O 8 9 OBJS = main.o 10 11 all: $(NAME) 12 13 $(NAME): $(OBJS) 14 $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) 15 16 install: all 17 mkdir -p "$(DESTDIR)$(PREFIX)/bin" 18 cp -f $(NAME) "$(DESTDIR)$(PREFIX)/bin" 19 20 clean: 21 rm $(OBJS) $(NAME)