aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-10-16 18:37:32 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-10-16 18:37:32 +0300
commita5ec437e91f90f25711c7e1b47b8238fdae6b103 (patch)
tree3d553a313c7facabccb23e829517540061b52759 /makefile
parent75eb52872d4c19eb7988e33f173f2763322ae8ff (diff)
downloadmagi-a5ec437e91f90f25711c7e1b47b8238fdae6b103.tar
magi-a5ec437e91f90f25711c7e1b47b8238fdae6b103.tar.xz
magi-a5ec437e91f90f25711c7e1b47b8238fdae6b103.zip
[magi] Cosmetic fixes.
Diffstat (limited to 'makefile')
-rw-r--r--makefile40
1 files changed, 0 insertions, 40 deletions
diff --git a/makefile b/makefile
deleted file mode 100644
index 9585f98..0000000
--- a/makefile
+++ /dev/null
@@ -1,40 +0,0 @@
-# Debug mode:
-# DEBUG = yes
-# Error logging (writes to stderr):
-# ERRLOG = yes
-
-CC = gcc
-LIB = libmagi.a
-
-CFLAGS = -xc -ansi -pedantic -Wall
-ifeq '$(DEBUG)' 'yes'
-CFLAGS += -g -O0
-else
-CFLAGS += -O3
-endif
-ifeq '$(ERRLOG)' 'yes'
-CFLAGS += -D ERRLOG
-endif
-
-SRC_DIR = src
-SRC = $(wildcard $(SRC_DIR)/*.c)
-OBJ = $(SRC:.c=.o)
-
-
-default: $(LIB)
-
-ifneq "clean" "$(MAKECMDGOALS)"
--include deps.mk
-endif
-
-deps.mk: $(SRC)
- $(CC) -MM $^ > $@
-
-%.o: %.c %.h
- $(CC) $(CFLAGS) -c $< -o $@
-
-$(LIB): $(OBJ)
- ar rcs $@ $^
-
-clean:
- rm -f $(OBJ) $(LIB) deps.mk