summaryrefslogtreecommitdiff
path: root/os2w3/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-13 12:45:37 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-13 12:45:37 +0200
commite95bd56df67f3ba6d6f9d44c66b791e45bcd54a3 (patch)
tree457276154858c7fe71a111842b1d377bbcc25bcc /os2w3/makefile
parent17dd9cdc6d5beb636695e5becbc93275524665af (diff)
week 3 worky
Diffstat (limited to 'os2w3/makefile')
-rw-r--r--os2w3/makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/os2w3/makefile b/os2w3/makefile
new file mode 100644
index 0000000..258d688
--- /dev/null
+++ b/os2w3/makefile
@@ -0,0 +1,17 @@
+CPP = g++
+LD = g++
+
+LFLAGS += -lstdc++
+CFLAGS += -g
+
+all: main
+
+main: main.o
+ $(LD) $^ $(LFLAGS) -o $@
+
+%.o: %.cpp
+ $(CPP) -c $(CFLAGS) $< -o $@
+
+clean:
+ $(RM) main.o main
+