diff options
| author | na <noah.andreas@nukura.com> | 2017-01-24 11:18:01 +0100 |
|---|---|---|
| committer | na <noah.andreas@nukura.com> | 2017-01-24 11:18:01 +0100 |
| commit | 61ed09c934e66fd069eef7b07289c7de751d4edf (patch) | |
| tree | 4d07e17dbbaa3d708ddd6122b5b30f046a01fe58 /makefile | |
| parent | c3344a23596cfa29d16493a24e57c39bb3b44889 (diff) | |
| download | lead-61ed09c934e66fd069eef7b07289c7de751d4edf.tar lead-61ed09c934e66fd069eef7b07289c7de751d4edf.tar.gz lead-61ed09c934e66fd069eef7b07289c7de751d4edf.zip | |
changed ninja to makefile
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..d9d85ca --- /dev/null +++ b/makefile @@ -0,0 +1,48 @@ +###### BUILD ###### + +INCLUDES = -Isrc -I/usr/include -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore +COMPILER = clang -std=c++11 -Wall -O3 -fPIC -MMD $(INCLUDES) -c $< -o $@ +MOC = moc $(INCLUDES) -o $@ $< +LINKER = g++ -o $@ $? -lQt5Xdg -lQt5Widgets -lQt5Gui -lQt5Core + + +# this prevents make from deleting the generated moc_*.cpp files +# so that the including of the dep-files will not fail +.SECONDARY: + + +data/usr/bin/mlde-lead: build/lead.o build/sensor.o build/main.o build/moc_lead.o build/moc_sensor.o + $(LINKER) + +build/%.o: src/%.cpp + $(COMPILER) + +build/moc_%.o: build/moc_%.cpp + $(COMPILER) + +build/moc_%.cpp: src/%.h + $(MOC) + +-include build/*.d + + +###### CLEAN ###### + +clean: + rm build/* + rm data/usr/bin/mlde-lead + + +###### INSTALL ###### + +install: + cp -r data/* / + + +###### UNINSTALL ###### + +uninstall: + rm /usr/bin/mlde-lead + + +.PHONY: clean install uninstall
\ No newline at end of file |
