-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
35 lines (26 loc) · 824 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
LIBS=-I/usr/local/include -lcgic
INC=../include
INCLUDES=-I../include
DEBUG=-DDEBUG
PROGS=
HTMLDIR=/var/www/gnugol
CGIDIR=/usr/lib/cgi-bin
BINDIR=$(HOME)/bin
CC=gcc
TESTDIR=../tests/
CFLAGS += -Wall -Wextra -pedantic
CFLAGS+=-std=c99
OBJECTS := handy.o utf8.o format.o utf8_urlencode.o nodelist.o
all: $(PROGS) $(OBJECTS)
clean:
rm -f $(OBJECTS) $(PROGS) *~
utf8_urlencode.o: utf8_urlencode.c $(INC)/utf8_urlencode.h
$(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) -c utf8_urlencode.c
handy.o: handy.c $(INC)/query.h
$(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) -c handy.c
utf8.o: utf8.c $(INC)/utf8.h
$(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) -c utf8.c
format.o: format.c $(INC)/formats.h
$(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) -c format.c
nodelist.o : nodelist.c $(INC)/nodelist.h
$(CC) $(CFLAGS) $(INCLUDES) $(DEBUG) -c nodelist.c