Permalink
Browse files

add nyancat made of clutter

  • Loading branch information...
1 parent 41ce573 commit 1a8bc8e287b80afce022cb21bd87d79cf4040188 @djdeath djdeath committed Aug 4, 2011
Showing with 1,470 additions and 1 deletion.
  1. +2 −1 README
  2. +83 −0 nyancat/Makefile
  3. +1,204 −0 nyancat/nyan.json
  4. +181 −0 nyancat/nyancat.c
  5. BIN nyancat/star.png
View
@@ -4,6 +4,7 @@ libraries. The following is a summary of each;
arc-clock - A small clock demo (using the cogl path API)
circles - A small spinning circles demo (using the cogl path API)
+nyancat - A small nyancat made of clutter
courasel - A carousel-style menu demo
foofone - A mock-up mobile phone interface
gps-globe - The start of an app to draw a globe with your GPS pos
@@ -14,7 +15,7 @@ pinpoint - A minimalistic presentation tool
pong - An unfinished pong game
ripples - A small 'ripples' effect demo (using the cogl vector-drawing
API)
-script-viewer - A ClutterScript viewer
+script-viewer - A ClutterScript viewer
Bitrotted toys that do not work with Clutter 1.x API yet have been placed in the attic/
View
@@ -0,0 +1,83 @@
+# A generic buildfiles to build single executable directory projects depending
+# only on pkg-config ability to build. It automatically names the project on
+# the toplevel directory you're in.
+#
+# Setting additional CFLAGS like $ export CFLAGS=-Wall -Werror # can help you
+# track issues down better after compilation.
+#
+# 20071008
+# Øyvind Kolås (c) 2007 <pippin@gimp.org> placed in the Public Domain.
+##
+
+PKGMODULES = clutter-1.0
+
+# you only need to change the following if you want to change where the
+# generated tarball gets scp'd to:
+
+SCP_DESTINATION=
+
+BINARY=$(shell basename `pwd`)#
+PACKAGE=../$(BINARY).tar.bz2 # you can use both .gz and .bz2 as extension here
+
+
+##
+# end of template configuration.
+#
+
+# This makefile uses the current directory as the only target binary, and
+# expects a single of the .c files to contain a main function.
+
+
+
+all: $(BINARY)
+
+# The help available also contains brief information about the different
+# build rules supported.
+help:
+ @echo ''
+ @echo 'Available targets in this make system'
+ @echo ''
+ @echo ' (none) builds $(BINARY)'
+ @echo ' dist create $(PACKAGE)'
+ @echo ' clean rm *.o *~ and foo and bar'
+ @echo ' run ./$(BINARY)'
+ @echo ' gdb gdb ./$(BINARY)'
+ @echo ' gdb2 gdb ./$(BINARY) --g-fatal-warnings'
+ @echo ' scp scp $(PACKAGE) $(SCP_DESTINATION)'
+ @echo ' help this help'
+ @echo ''
+
+
+LIBS= $(shell pkg-config --libs $(PKGMODULES))
+INCS= $(shell pkg-config --cflags $(PKGMODULES))
+
+CFLAGS+=-Wall
+CFILES = $(wildcard *.c)
+OBJECTS = $(subst ./,,$(CFILES:.c=.o))
+HFILES = $(wildcard *.h)
+%.o: %.c $(HFILES)
+ $(CC) -g $(CFLAGS) $(INCS) -c $< -o$@
+$(BINARY): $(OBJECTS)
+ $(CC) -o $@ $(LIBS) $(OBJECTS)
+test: run
+run: $(BINARY)
+ ./$(BINARY)
+
+../$(BINARY).tar.gz: clean $(CFILES) $(HFILES)
+ cd ..;tar czvhf $(BINARY).tar.gz $(BINARY)/*
+ @ls -slah ../$(BINARY).tar.gz
+../$(BINARY).tar.bz2: clean $(CFILES) $(HFILES)
+ cd ..;tar cjvhf $(BINARY).tar.bz2 $(BINARY)/*
+ @ls -slah ../$(BINARY).tar.bz2
+
+dist: $(PACKAGE)
+ echo $(PACKAGE)
+scp: dist
+ scp $(PACKAGE) $(SCP_DESTINATION)
+
+gdb: all
+ gdb --args ./$(BINARY)
+gdb2: all
+ gdb --args ./$(BINARY) -demo --g-fatal-warnings
+clean:
+ rm -fvr *.o $(BINARY) *~ *.patch
Oops, something went wrong.

0 comments on commit 1a8bc8e

Please sign in to comment.