mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-14 15:45:23 +00:00
Prompted by discussion on simh@groups.io: https://groups.io/g/simh/topic/need_some_help_with_rt_11/108655724
21 lines
423 B
Makefile
21 lines
423 B
Makefile
# all of these can be over-ridden on the "make" command line if they don't suit your environment.
|
|
TOOL=lbn2pbn
|
|
CFLAGS=-O2 -Wall -Wextra -pedantic
|
|
BIN=/usr/local/bin
|
|
INSTALL=install
|
|
CC=gcc
|
|
|
|
$(TOOL): $(TOOL).c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TOOL) $(TOOL).c $(LDLIBS)
|
|
|
|
.PHONY: clean install uninstall
|
|
|
|
clean:
|
|
rm -f $(TOOL)
|
|
|
|
install: $(TOOL)
|
|
$(INSTALL) -p -m u=rx,g=rx,o=rx $(TOOL) $(BIN)
|
|
|
|
uninstall:
|
|
rm -f $(BIN)/$(TOOL)
|