aboutsummaryrefslogtreecommitdiff
path: root/zumo/pidtest.mk
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-19 13:34:31 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-19 13:34:31 +0200
commitff7a914055cf851c994ee037342a331902f84a0c (patch)
tree790f9398aa23bb526f93787bb3af73a426877e76 /zumo/pidtest.mk
parent2ed0ea4f12a5532092428f57e040f2cefb5fb973 (diff)
add pidtest
Diffstat (limited to 'zumo/pidtest.mk')
-rw-r--r--zumo/pidtest.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/zumo/pidtest.mk b/zumo/pidtest.mk
new file mode 100644
index 0000000..5ffe1e1
--- /dev/null
+++ b/zumo/pidtest.mk
@@ -0,0 +1,21 @@
+CPP = g++
+LD = g++
+RM = rm -f
+CFLAGS =
+LFLAGS =
+TARGET = pidtest
+
+SRCS := pidtest.cpp pid.cpp
+OBJS := pidtest.o pid.o
+
+all: pidtest
+
+%.o: %.cpp
+ $(CPP) -c $(CFLAGS) $< -o $@
+
+$(TARGET): $(OBJS)
+ $(LD) $^ $(LFLAGS) -o $@
+
+clean:
+ $(RM) $(TARGET) $(OBJS)
+