Makefile 322 B

123456789101112131415161718192021222324
  1. # Makefile - (C) Chris Dorman, 2020 <cddo@riseup.net>
  2. PREFIX = /freon
  3. CC = cc
  4. CFLAGS = -O2
  5. LDFLAGS =
  6. BIN = cdsh
  7. OBJECTS = src/parse.o src/main.o
  8. all: main
  9. fresh: clean all
  10. main: $(OBJECTS)
  11. $(CC) $(OBJECTS) -o $(BIN) $(LDFLAGS) $(CFLAGS)
  12. clean:
  13. rm -f $(OBJECTS) $(BIN)
  14. install:
  15. cp $(BIN) $(PREFIX)/bin/$(BIN)