First cut of formal ABI definition, so that the same definition can be

used to generate the function table in lsi as the header file which
code can include to get a matching ABI definition.
This commit is contained in:
2007-04-29 13:15:34 +00:00
parent bc76cfe623
commit 10ac321771
5 changed files with 142 additions and 68 deletions

View File

@@ -5,6 +5,9 @@ PREFIX?= /usr/local
OBJS= main.o vm.o plugins.o dmx.o midi.o beatdetect.o fft.o map3d.o mouse.o
SRCS= main.c vm.c plugins.c dmx.c midi.c beatdetect.c fft.c map3d.c mouse.c
OBJS+= abi.o
SRCS+= abi.c
COMMONOBJS= mem.o hash.o
COMMONDIR= ../common
@@ -20,6 +23,12 @@ PROGOBJS= ${OBJS} ${COMMONOBJS:S/^/${COMMONDIR}\//}
lsi: ${OBJS}
${LINK.c} -o ${.TARGET} ${PROGOBJS} ${LDLIBS}
abi.c: abispec makeabi
./makeabi abispec
abi.lh: abispec makeabi
./makeabi abispec
install: lsi
${INSTALL} -d ${PREFIX}/bin
${INSTALL} -c lsi ${PREFIX}/bin/lsi
@@ -28,4 +37,4 @@ depend:
mkdep -- ${CFLAGS} ${CPPFLAGS} ${SRCS}
clean:
rm -f ${OBJS} lsi
rm -f ${OBJS} lsi abi.c abi.lh