Makefile (276B)
1 NAME = cracklepop 2 SRC = main.c 3 OBJ = ${SRC:.c=.o} 4 5 CC = cc 6 CFLAGS = -std=c99 -Wall 7 LDFLAGS = 8 9 all: ${NAME} 10 11 ${NAME}: ${OBJ} 12 ${CC} -o $@ ${OBJ} ${LDFLAGS} 13 14 ${NAME}: Makefile 15 16 clean: 17 rm -f ${NAME} ${OBJ} 18 19 .c.o: 20 ${CC} ${CFLAGS} -c -o $@ $< 21 22 .PHONY: all clean 23 .SUFFIXES: .c .o