agama/rust/zypp-agama/zypp-agama-sys/c-layer/Makefile
2025-10-09 16:28:31 +02:00

24 lines
546 B
Makefile

AR=ar
CXX=g++
CXXFLAGS=-Wall -I./include -I./internal -Izypp -Wall -std=c++14 -lzypp -lsystemd -fPIE
DEPS = include/lib.h include/callbacks.h internal/callbacks.hxx
OBJ = lib.o callbacks.o
all: libagama-zypp.a
clean:
rm -vf *.o *.a
check:
git ls-files | grep -E '\.(c|h|cxx|hxx)$$' | \
xargs --verbose clang-format --style=llvm --dry-run
libagama-zypp.a: $(OBJ)
$(AR) -crs $@ $^
%.o: %.cxx $(DEPS)
$(CXX) -c -o $@ $< $(CXXFLAGS)
format:
git ls-files | grep -E '\.(c|h|cxx|hxx)$$' | \
xargs --verbose clang-format --style=llvm -i