Initial edits...

This commit is contained in:
Nils Faerber 2011-07-18 22:33:40 +02:00
commit 5c3d6461a1
3 changed files with 101 additions and 0 deletions

29
Makefile Normal file
View file

@ -0,0 +1,29 @@
# Copyright (C) 2011 Nils Faerber <nils.faerber@kernelconcepts.de>
# prefix for installation and search path (like icons)
PREFIX = /usr/local/
CFLAGS = $(CCFLAGS)
PRGNAME = metawatch
MEMBERS = metawatch
# no need to change anything below this line
# ------------------------------------------
.SUFFIXES: .d .c
CFLAGS += -MD -DPREFIX=\"$(PREFIX)\" $(OPTIONS)
LDFLAGS = $(CLDFLAGS) $(SQLITELDFLAGS)
SOURCES = $(patsubst %,%.c,$(MEMBERS))
OBJS = $(patsubst %,%.o,$(MEMBERS))
DEPS = $(patsubst %,%.d,$(MEMBERS))
all: $(PRGNAME)
$(PRGNAME): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f *.o *.d $(PRGNAME)
-include $(DEPS)