Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (35 sloc) 873 Bytes
# Makefile:
#
# Make Visi-Genie Demos on the Raspberry Pi
#
# Gordon Henderson, December 2012
###############################################################################
#DEBUG = -g -O0
DEBUG = -O2
CC = gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
LDFLAGS = -L/usr/local/lib
LIBS = -lm -lpthread -lgeniePi
SRC = calculator.c
# May not need to alter anything below this line
###############################################################################
OBJ = $(SRC:.c=.o)
BINS = $(SRC:.c=)
calculator: calculator.o
@echo [link]
@$(CC) -o $@ calculator.o $(LDFLAGS) $(LIBS)
.c.o:
@echo [Compile] $<
@$(CC) -c $(CFLAGS) $< -o $@
.PHONEY: clean
clean:
rm -f $(OBJ) $(BINS) *~ core tags *.bak
.PHONEY: tags
tags: $(SRC)
@echo [ctags]
@ctags $(SRC)
.PHONEY: depend
depend:
makedepend -Y $(SRC)
# DO NOT DELETE