Last active
May 23, 2016 20:15
-
-
Save stvhwrd/470a18dd1b5b3582124d2b13ded231b1 to your computer and use it in GitHub Desktop.
This is a sweet boilerplate makefile for cmake
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
# This is a sweet boilerplate makefile for cmake | |
CC= gcc | |
CFLAGS= -Wall -O -g -ansi | |
SRCS= main.c queue.c | |
OBJS= main.o queue.o | |
PROGRAM= queuetest | |
MKDEP= gccmakedep | |
${PROGRAM}: ${OBJS} | |
${CC} ${CFLAGS} ${OBJS} -o ${PROGRAM} | |
%.o : %.c | |
$(CC) $(CFLAGS) -c $< | |
clean: | |
rm -f ${OBJS} ${PROGRAM} | |
depend: | |
${MKDEP} ${CFLAGS} ${SRCS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment