summaryrefslogtreecommitdiffstats
path: root/feed/Makefile
blob: 3bf34935e31632f19df794494ae98486574f6005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS=-Wall -W -O3 -pipe
#CFLAGS=-Wextra -g -O0 -pipe
LIBS=-lfl

PYTHON_SOURCES=$(wildcard *.py)
PYTHON_OBJECTS=$(PYTHON_SOURCES:.py=.pyo)

%.yy.c: %.l
	flex -o $@ $^

%.pyo: %.py
	./compile $<

all: sse_lex_c $(PYTHON_OBJECTS)

sse_lex_c: sse_lex_c.yy.o
	$(CC) -o $@ $^ $(LIBS)

clean:
	rm -f *.o sse_lex_c.yy.c sse_lex_c *.pyc *.pyo

.PHONY: all clean