From 02ffe0ed4113e7b479197d0ba1b160e6280b4099 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 2 May 2021 10:19:23 +0200 Subject: Move the source files to a src directory --- Makefile | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 04b5c90..dcd38c3 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,11 @@ PROGRAM_NAME=diff-dd PROGRAM_VERSION=1.0 -# Program name is used in the tests to locate the executable file -export PROGRAM_NAME - -CC=gcc -CFLAGS=-Wall - -SOURCES=*.c -HEADERS=*.h -all: $(PROGRAM_NAME) - -$(PROGRAM_NAME): $(SOURCES) $(HEADERS) program_info.h - $(CC) $(CFLAGS) -o $(PROGRAM_NAME) $(SOURCES) +export PROGRAM_NAME +export PROGRAM_VERSION -program_info.h: - echo "#define PROGRAM_NAME_STR \"$(PROGRAM_NAME)\"" >program_info.h - echo "#define PROGRAM_VERSION_STR \"$(PROGRAM_VERSION)\"" >>program_info.h +all: + $(MAKE) -C src all .PHONY: test clean @@ -24,4 +13,4 @@ test: all $(MAKE) -C tests clean: - rm -f *.o *~ $(PROGRAM_NAME) program_info.h + $(MAKE) -C src clean -- cgit v1.2.3