From d06274dab603d9a7368635515af5561778b14e2a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 9 Nov 2010 17:45:24 +0100 Subject: [PATCH] updated Makefile to new directory structure --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7aa5472..0be89ea 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ -SRCS = $(wildcard *.c) -PROGS = $(patsubst %.c,%,$(SRCS)) +SRCS = $(wildcard src/*.c) +PROGS = $(patsubst src/%.c,%,$(SRCS)) CFLAGS += -g -Wall -O0 +VPATH = src/ all: $(PROGS) -%: %.c - $(CC) $(CFLAGS) -o $@ $< +%: src/%.c + $(CC) $(CFLAGS) $< -o bin/$@ clean: - rm -f *.o *.save $(PROGS) + rm -f bin/* src/*.save +