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