# SPDX-FileCopyrightText: 2019 Helmut Pozimski # # SPDX-License-Identifier: GPL-2.0-only CC ?= gcc CFLAGS ::= $(CFLAGS) -std=c99 -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -pedantic DEPS = src/wavfile.h src/tcpserver.h build/%.o: src/%.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) build/tpr: build/wavfile.o build/main.o build/tcpserver.o $(CC) -o build/tpr build/wavfile.o build/main.o build/tcpserver.o all: build/tpr .PHONY: clean clean: rm -f build/*.o rm -f build/tpr install: build/tpr install -m 0755 -s build/tpr $(PREFIX)/bin