24 lines
322 B
Makefile
24 lines
322 B
Makefile
|
# Makefile - (C) Chris Dorman, 2020 <cddo@riseup.net>
|
||
|
|
||
|
PREFIX = /freon
|
||
|
CC = cc
|
||
|
|
||
|
CFLAGS = -O2
|
||
|
LDFLAGS =
|
||
|
|
||
|
BIN = cdsh
|
||
|
OBJECTS = src/parse.o src/main.o
|
||
|
|
||
|
all: main
|
||
|
|
||
|
fresh: clean all
|
||
|
|
||
|
main: $(OBJECTS)
|
||
|
$(CC) $(OBJECTS) -o $(BIN) $(LDFLAGS) $(CFLAGS)
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OBJECTS) $(BIN)
|
||
|
|
||
|
install:
|
||
|
cp $(BIN) $(PREFIX)/bin/$(BIN)
|