mirror of
https://github.com/siemens-mobile-hacks/ptr89.git
synced 2026-11-26 02:37:25 +00:00
20 lines
396 B
Makefile
Executable file
20 lines
396 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
# Include distribution check logic
|
|
OS = $(shell lsb_release -is)
|
|
VERSION_ID = $(shell lsb_release -rs)
|
|
|
|
# Default compilers
|
|
CC = gcc
|
|
CXX = g++
|
|
|
|
# Conditionally set compilers for Ubuntu 22.04
|
|
ifneq (,$(findstring Ubuntu,$(OS)))
|
|
ifneq (,$(findstring 22.04,$(VERSION_ID)))
|
|
export CC = gcc-12
|
|
export CXX = g++-12
|
|
endif
|
|
endif
|
|
|
|
%:
|
|
dh $@ --buildsystem=cmake
|