makefile 780 Bytes
Newer Older
moh_lo's avatar
moh_lo committed
1 2 3 4 5 6 7 8 9 10 11 12
OBJS= yycback.o yyccdeci.o yycclex.o yyccwork.o yycdeci.o yycdepop.o \
yycdisc.o yycdoutp.o yycecho.o yycerror.o yycflex.o yycgetch.o yycgtok.o \
yycinput.o yyclcln.o yyclcon.o yyclcrea.o yycldbug.o yycldest.o yycless.o \
yycoutpt.o yycparse.o yycpcln.o yycpcon.o yycpcrea.o yycpdbug.o yycpdest.o \
yycpop.o yycpush.o yycreset.o yycsetin.o yycsetup.o yycsoflw.o yycsskip.o \
yycsssiz.o yycstsiz.o yycsusiz.o yycsyner.o yyctoflw.o yycuncin.o \
yycunput.o yycuoflw.o yycwipe.o yycwork.o yycwrap.o


CPPC = g++
CPPFLAGS = -Iinclude/
LIB_NAME=libalex.so
13 14 15 16 17
STATIC_LIB_NAME = libalex.a

$(STATIC_LIB_NAME): $(OBJS)
	ar -r $@ $(OBJS) && ranlib $@

moh_lo's avatar
moh_lo committed
18 19 20 21 22 23 24 25

$(LIB_NAME): $(OBJS)
	$(CPPC) -shared -o $@ $^

%.o:%.cpp
	$(CPPC) $(CPPFLAGS) -fpic -c $<

clean:
Frederic's avatar
Frederic committed
26
	rm -f *.o $(LIB_NAME) $(STATIC_LIB_NAME)