From f3984a9b4fb17c12956138694936c62959ebec2d Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Sat, 21 Mar 2020 02:47:36 +0100 Subject: Initial Commit The application exchanges 2 files, given as arguments. Signed-off-by: Tobias Wiese --- src/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..972f55e --- /dev/null +++ b/src/Makefile @@ -0,0 +1,19 @@ +CC := gcc +CFLAGS := -Wall +LDFLAGS := + +CFLAGS += -DVERSIN="\"$(shell git describe --dirty --always)\"" + +TARGETS := exchange +MAINS := $(addsuffix .o, $(TARGETS)) +OBJ := $(MAINS) + +.PHONY: all +all: $(TARGETS) + +.PHONY: clean +clean: + rm -rf $(OBJ) $(TARGETS) + +$(TARGETS): % : %.o + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -- cgit v1.2.3