Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
4D Systems Engineering committed Dec 20, 2012
1 parent 3623e27 commit 792a889
Show file tree
Hide file tree
Showing 3 changed files with 420 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Makefile
@@ -0,0 +1,46 @@
# 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 -lwiringPi -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

0 comments on commit 792a889

Please sign in to comment.