-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (29 loc) · 774 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
35
36
37
38
39
40
41
42
43
ALLINC = -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
ALLLIB = -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lz
DEPLIB =
PROG = svg2lay
OBJS = svg2lay.o
SRCS = svg2lay.cc
JUNK =
OPT=-O9
CC=gcc
CXX=g++
CFLAGS=-g -Wall ${OPT}
all: ${PROG}
.SUFFIXES: .cc .hh .o .a .ui .m.cc .m.o .y .lua .luac .s
.PRECIOUS: ${JUNK} ${JUNK2}
${PROG}: ${OBJS} ${DEPLIB}
${CXX} ${CFLAGS} ${OBJS} ${ALLINC} ${ALLLIB} -o ${PROG}
.cc.o:
${CXX} -c ${CFLAGS} ${DEFS} ${ALLINC} $<
.c.o:
${CC} -c ${CFLAGS} ${DEFS} ${ALLINC} $<
.y.c:
bison -d -o $@ $<
.y.h:
bison -d -o $@ $<
clean:
rm -f ${OBJS} ${PROG}
distclean:
rm -f ${OBJS} ${PROG}
###