From 0017297a2437c5b334c979c9691bafc06389664f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 3 Jul 2006 23:52:53 +0200 Subject: Initial import --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0848fb5 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +VERSION = 0.1 + +# Paths +prefix = $(HOME) +BINDIR = $(prefix)/bin +DESTDIR = + +CC := gcc +INSTALL := install + +INCLUDES := -I /usr/include/SDL -I /usr/include/X11 +LIBS := -lSDL + +CFLAGS := -g -Wall $(INCLUDES) -D_USE_SOURCE +LDFLAGS := $(LIBS) + +DEBUG = false + +ifeq ($(strip $(DEBUG)),true) + CFLAGS += -DDEBUG +endif + +PROGRAM := hdaps-tux + +all: $(PROGRAM) + +$(PROGRAM): $(PROGRAM).o $(PROGRAM).h + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +install: $(PROGRAM) + $(INSTALL) -m 775 $(PROGRAM) $(DESTDIR)$(BINDIR) + +clean: + rm -f *.o + rm -f $(PROGRAM) -- cgit v1.2.3-54-g00ecf