blob: df491b23df76638911ce491f0b21347c4f49f29a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
CC = gcc
LD = gcc
CFLAGS += -std=c99 $(shell pkg-config --cflags libconfig)
LDFLAGS += $(shell pkg-config --libs libconfig)
OBJECTS = main.o config.o
TARGET = ircstats
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(LD) $(LDFLAGS) -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
rm -f $(OBJECTS) $(TARGET)
|