Makefile 363 B

123456789101112131415161718192021222324
  1. # Makefile - (C) Chris Dorman, 2024 <cddo@riseup.net>
  2. PREFIX = /usr/local
  3. CC = gcc
  4. CFLAGS = -O2 -Wall -Wextra
  5. LDFLAGS =
  6. BIN = microircd
  7. OBJECTS = src/main.o src/server.o src/functions.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)