summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 22 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7174c85..6840954 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,20 @@
#
-# Makefile
+# Makefile for mammoth
#
+# Author:
+# Dr. Ilhan Ozgen-Xian
+# Lawrence Berkeley National Laboratory 2021
+#
+# Type "make" to compile mammoth
+#
+
PRG=mammoth
SRC=main.c
+HDR=header.h
-CC=/usr/local/bin/gcc-10
+CC=/usr/local/bin/gcc-11
+CTAGS=uctags
TRIANGLE_DIR=/Users/IOzgen/Documents/work/coding/tools/triangle
@@ -14,7 +23,7 @@ LFLAGS=-I$(TRIANGLE_DIR)
CPU=
RUNFLAGS=
INCLUDES=
-LIB=
+LIB=$(TRIANGLE_DIR)/triangle.o
#
#
@@ -23,6 +32,7 @@ LIB=
OBJ=$(SRC:.c=.o)
all: $(PRG)
+ make tags
run: $(PRG)
$(RUNFLAGS) ./$(PRG)
@@ -34,9 +44,16 @@ $(PRG): $(OBJ)
$(CC) $(LFLAGS) $(CFLAGS) -c $< -o $@
clean:
- rm -vf $(PRG) $(OBJ) output/*
+ rm -vf $(PRG) $(OBJ)
rm -vf $(P)
-.PHONY: all clean
+cleanall:
+ rm -vf output/*
+ make clean
+
+tags: $(SRC)
+ $(CTAGS) -Re $(SRC) $(HDR)
+
+.PHONY: all clean cleanall tags
# eof