summaryrefslogtreecommitdiff
path: root/utils/jz4760_tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/jz4760_tools/Makefile')
-rw-r--r--utils/jz4760_tools/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/jz4760_tools/Makefile b/utils/jz4760_tools/Makefile
new file mode 100644
index 0000000..847539e
--- /dev/null
+++ b/utils/jz4760_tools/Makefile
@@ -0,0 +1,21 @@
+DEFINES=
+CC?=gcc
+CXX?=g++
+LD?=g++
+CFLAGS=-g -std=c99 -Wall $(DEFINES) -Ilib
+CXXFLAGS=-g -Wall $(DEFINES)
+LDFLAGS=
+SRC=$(wildcard *.c)
+SRCXX=$(wildcard *.cpp)
+EXEC=$(SRC:.c=) $(SRCXX:.cpp=)
+
+all: $(EXEC)
+
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+
+%: %.cpp
+ $(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
+
+clean:
+ rm -fr $(EXEC)