diff options
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 + |