Initial edits...
This commit is contained in:
commit
5c3d6461a1
3 changed files with 101 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue