summaryrefslogtreecommitdiff
path: root/util/archive/Makefile
blob: d4b58f765f930f988032f19dc79ffd8d6c88ada0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PROGRAM = archive
HOSTCC ?= gcc
WERROR=-Werror
CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR}

SRCS = $(PROGRAM).c

all: $(PROGRAM)

$(PROGRAM): $(SRCS)
	$(HOSTCC) $(CFLAGS) -o $@ $^

clean:
	rm -f $(PROGRAM) *.o

distclean: clean

help:
	@echo "${PROGRAM}: Concatenate files and create an archive"
	@echo "Targets: all, clean, distclean, help"
	@echo "To disable warnings as errors, run make as:"
	@echo "  make all WERROR=\"\""

.PHONY: all clean distclean help