metawatch/Makefile
Nils Faerber 5c2abd6bea Add menu
2011-07-19 14:13:11 +02:00

29 lines
652 B
Makefile

# Copyright (C) 2011 Nils Faerber <nils.faerber@kernelconcepts.de>
# prefix for installation and search path (like icons)
PREFIX = /usr/local/
CFLAGS = -Wall -O2 $(CCFLAGS)
PRGNAME = metawatch
MEMBERS = metawatch crc16ccitt
# 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)