summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-11 15:47:10 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-11 15:47:10 +0100
commit44388020aa696238daff956fd06d8470c3e9dcf2 (patch)
treee5b61483f8ea356a96f543666d2f9deb7360aa9f /Makefile
Added debian infrastructure
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..92fc9a8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PROJECTNAME=xmake
+
+SRC=main.cpp xmake.cpp
+
+OBJ=$(SRC:.cpp=.o)
+
+all: $(PROJECTNAME)
+
+$(PROJECTNAME): $(OBJ)
+ $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c $< -o $@
+
+install:
+ mkdir -p $(DESTDIR)/usr/bin
+ cp $(PROJECTNAME) $(DESTDIR)/usr/bin/
+
+clean:
+ -rm -f *.o $(PROJECTNAME)
+
+.PHONY: clean install all
+