transfer to cpp arduino
[mTask.git] / int / Makefile
index 2a16a1e..b311ea5 100644 (file)
@@ -1,11 +1,14 @@
-CFLAGS:=-g -Wall -Wextra -Werror
+CPPFLAGS:=-g -Wall -Wextra -Werror -DDEBUG
 PROG:=main
-OBJS:=interpret.o sds.o task.o
+OBJS:=interpret.o sds.o task.o main.o
 
 all: mTaskSymbols.h $(PROG)
 
-$(PROG): $(PROG).c $(OBJS) misc.h
-       $(LINK.c) $(LDLIBS) $^ $(OUTPUT_OPTION)
+%.o: %.cpp
+       g++ $(CPPFLAGS) -c $< -o $@
+
+$(PROG): $(OBJS) misc.h
+       g++ $(LDFLAGS) -o $@ $(OBJS)
 
 mTaskSymbols.h:
        CLMFLAGS=-nr make -BC .. mTaskInterpret