Last active
April 27, 2018 07:34
-
-
Save decal/0d357092b5b109a5ee7ae672490d70f5 to your computer and use it in GitHub Desktop.
🎡 GNU Makefile Boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# GNU Makefile boilerplate | |
# | |
# Written by: Derek Callaway [decal (AT) sdf {D0T} org] | |
# | |
CC = gcco | |
CFLAGS = -std=c11 -Wall -pedantic -O2 -g -I. -D_FORTITY_SOURCE=2 -fstack-check -fstack-protector-all -fsanitize=alignment | |
LIBS = | |
SRCS = count_commas.c count_urlglob.c main_function.c show_urlglob.c showall_urlglob.c array_range.c show_usage.c integer_l | |
ength.c urlglob_error.c open_bracket.c open_brace.c next_string.c fill_class.c | |
OBJS = count_commas.o count_urlglob.o main_function.o show_urlglob.o showall_urlglob.o array_range.o show_usage.o integer_l | |
ength.o urlglob_error.o open_bracket.o open_brace.o next_string.o fill_class.o | |
OUTS = $(SRCS:.c=) | |
.PHONY: all clean rebuild | |
all: $(OBJS) | |
$(CC) $(CFLAGS) -o urlglob *.o $(LIBS) | |
rebuild: clean all | |
$(OUTS): $(SRCS) | |
$(CC) $(CFLAGS) -c $(subst output,,[email protected]) $(LIBS) | |
clean: | |
$(RM) $(OUTS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment