Permalink
Browse files

Initial

  • Loading branch information...
4dsystems committed Dec 20, 2012
1 parent 3623e27 commit 792a8896b957f440e505713aef3c755ed77e6e7f
Showing with 420 additions and 0 deletions.
  1. +46 −0 Makefile
  2. +374 −0 calculator.c
  3. BIN calculator.zip
View
@@ -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
Oops, something went wrong.

0 comments on commit 792a889

Please sign in to comment.