summaryrefslogtreecommitdiff
path: root/Makefile
blob: 238d359f69508a7ea538e65137a8957bc3d417e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC=gcc
CFLAGS=-Wall -Werror -pedantic
LIBS=-lpthread

nebula2: nebula2.o config.o render.o statefile.o mutex_helpers.o iniparser/libiniparser.a
	$(CC) $(CFLAGS) $(LIBS) -o nebula2 nebula2.o config.o render.o statefile.o mutex_helpers.o iniparser/libiniparser.a

iniparser/libiniparser.a:
	make -C iniparser libiniparser.a

%.o:%.c
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f *.o

nuke: clean
	rm -f nebula2