Select Git revision
-
Dean Camera authored
Documentation improvements - put driver example code into its own section, fix incorrect and missing section names.
Dean Camera authoredDocumentation improvements - put driver example code into its own section, fix incorrect and missing section names.
Makefile 557 B
# Change your compiler here if you're not using gcc. CC is for C, and CXX is for C++.
CC = gcc
CXX = g++
CFLAGS = -Wall -O3
.PHONY: all
all: loops
# Here I'm using some of Make's built in variables: $@ and $<. The former gets substituted with the
# name of the target. In this case, that's "loops". The latter gets substituted with the first
# prerequisite. In this case, that's "loops.c". These are hard to remember, but can save you some
# typing if you decide to rename things.
loops: loops.c
$(CC) $(CFLAGS) -o $@ $<
.PHONY: clean
clean:
rm loops