initial git release
[lcreminder] / src / Makefile
1 OBJS=lens-cover-reminder-sp.o
2 SOURCES=lens-cover-reminder-sp.c
3 BUILDDIR=../build
4 LIB=$(BUILDDIR)/lens-cover-reminder-sp.so
5 PKG_FLAGS=$(shell pkg-config hildon-1 libhildondesktop-1 --libs --cflags)
6 CCFLAGS=-shared
7 CC=gcc
8
9 all: $(LIB)
10
11
12 $(LIB): $(OBJS)
13         $(CC) $(CCFLAGS) $(PKG_FLAGS) $(OBJS) -o $(LIB)
14
15 .c.o:
16         $(CC) $(CCFLAGS) $(PKG_FLAGS) -c $< -o $@
17
18
19 .PHONY: clean all
20
21 clean:
22         rm $(OBJS)