initial git release
[lcreminder] / src / Makefile
diff --git a/src/Makefile b/src/Makefile
new file mode 100644 (file)
index 0000000..b6bc34b
--- /dev/null
@@ -0,0 +1,22 @@
+OBJS=lens-cover-reminder-sp.o
+SOURCES=lens-cover-reminder-sp.c
+BUILDDIR=../build
+LIB=$(BUILDDIR)/lens-cover-reminder-sp.so
+PKG_FLAGS=$(shell pkg-config hildon-1 libhildondesktop-1 --libs --cflags)
+CCFLAGS=-shared
+CC=gcc
+
+all: $(LIB)
+
+
+$(LIB): $(OBJS)
+       $(CC) $(CCFLAGS) $(PKG_FLAGS) $(OBJS) -o $(LIB)
+
+.c.o:
+       $(CC) $(CCFLAGS) $(PKG_FLAGS) -c $< -o $@
+
+
+.PHONY: clean all
+
+clean:
+       rm $(OBJS)
\ No newline at end of file