diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2020-07-20 19:30:46 +0300 |
---|---|---|
committer | Anastasios Grammenos <anastasios.grammenos@noris.gr> | 2020-12-02 14:04:55 +0200 |
commit | fa2a1b1e6d31f3b21e50ea5730a8fb5967d087e8 (patch) | |
tree | 51bdd30a10afc582f6692646a4a9dcbb11e238da /Makefile | |
download | xlnch-fa2a1b1e6d31f3b21e50ea5730a8fb5967d087e8.tar.gz xlnch-fa2a1b1e6d31f3b21e50ea5730a8fb5967d087e8.tar.bz2 xlnch-fa2a1b1e6d31f3b21e50ea5730a8fb5967d087e8.zip |
Initial
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..172219f --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +TARGET=xlnch +SRC=*.c +CC=gcc +CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic +REL_FLAGS=-O3 +DBG_FLAGS=-Wall -g3 +LIBS=-l X11 + +make: $(SRC) + $(CC) $(REL_FLAGS) $(CFLAGS) -o $(TARGET) $^ $(LIBS) + +debug: $(SRC) + $(CC) $(DBG_FLAGS) -fsanitize=address $(CFLAGS) -o $(TARGET) $^ $(LIBS) + +noasan: $(SRC) + $(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^ $(LIBS) + +.PHONY: clean + +clean: + rm -f *.o + rm -f $(TARGET) + +install: $(TARGET) + @cp -v $(TARGET) /usr/local/bin/$(TARGET) + +uninstall: + @rm -v /usr/local/bin/$(TARGET) |