aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6ef05082042fa075e0991cfed2a9b1a7a40938a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#CPPFLAGS += -DDEBUG
#CFLAGS += -g
LDLIBS = -lncursesw
OBJ = noice.o strlcpy.o
BIN = noice

all: $(BIN)

$(BIN): config.h $(OBJ)
	$(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)

config.h:
	@echo copying config.def.h to $@
	@cp config.def.h $@

noice.o: noice.c queue.h util.h
	$(CC) $(CFLAGS) $(CPPFLAGS) -c noice.c

strlcpy.o: strlcpy.c util.h
	$(CC) $(CFLAGS) -c strlcpy.c

clean:
	rm -f $(BIN) $(OBJ)