diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-11 15:47:10 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-11 15:47:10 +0100 |
commit | 44388020aa696238daff956fd06d8470c3e9dcf2 (patch) | |
tree | e5b61483f8ea356a96f543666d2f9deb7360aa9f /Makefile |
Added debian infrastructure
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
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 + |