| 1 |
|
|
| 2 |
|
ifneq ($(CFLAGS),) |
| 3 |
|
EXTRA_CMAKE_FLAGS += -DCMAKE_C_FLAGS="$(CFLAGS)" |
| 4 |
|
endif |
| 5 |
|
|
| 6 |
all: build/Makefile |
all: build/Makefile |
| 7 |
$(MAKE) -C build $(MAKE_FLAGS) all |
$(MAKE) -C build $(MAKE_FLAGS) all |
| 8 |
|
|
| 9 |
DISTNAME=cdrkit-$(shell cat VERSION) |
DISTNAME=cdrkit-$(shell cat VERSION) |
| 10 |
|
|
| 11 |
build/Makefile: |
build/Makefile: |
| 12 |
-mkdir build 2>/dev/null |
@-mkdir build 2>/dev/null |
| 13 |
cd build && cmake .. |
cd build && cmake .. $(EXTRA_CMAKE_FLAGS) |
| 14 |
|
|
| 15 |
cmakepurge: |
cmakepurge: |
| 16 |
rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake */CMakeFiles */CMakeCache.txt */cmake_install.cmake */progress.make |
rm -rf install_manifest.txt progress.make CMakeFiles CMakeCache.txt cmake_install.cmake */CMakeFiles */CMakeCache.txt */cmake_install.cmake */progress.make |