File: Makefile.am

package info (click to toggle)
linux-gpib-user 4.3.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,760 kB
  • sloc: ansic: 10,381; perl: 1,120; xml: 375; makefile: 335; yacc: 335; tcl: 308; python: 173; php: 157; lex: 144; sh: 134; lisp: 94
file content (49 lines) | stat: -rw-r--r-- 1,952 bytes parent folder | download | duplicates (2)
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
44
45
46
47
48
49
# lib/Makefile.am
# copyright (C) 2003 by Frank Mori Hess
# email : fmhess@users.sourceforge.net
#
#   This Makefile.am is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.

SUBDIRS = . gpib_config

lib_LTLIBRARIES = libgpib.la

noinst_HEADERS = ibConf.h ib_internal.h

BUILT_SOURCES = ibConfLex.c ibConfLex.h ibConfYacc.c ibConfYacc.h ibVers.h
MAINTAINERCLEANFILES = ibConfLex.c ibConfLex.h ibConfYacc.c ibConfYacc.h ibVers.h

EXTRA_DIST = ibConfLex.l ibConfYacc.y gpib_version_script

libgpib_la_SOURCES = \
	../include/gpib/ib.h ib_internal.h ibConf.h ibP.h parse.h \
	ibCac.c ibClr.c ibCmd.c ibEos.c ibEot.c \
	ibFind.c ibLines.c ibOnl.c ibPad.c ibRd.c ibRpp.c ibRsp.c ibRsv.c \
	ibSad.c ibSic.c ibSpb.c ibSre.c ibTmo.c ibTrg.c ibWait.c ibWrt.c \
	ibGts.c ibBoard.c ibutil.c globals.c ibask.c ibppc.c \
	ibLoc.c ibDma.c ibdev.c ibbna.c async.c ibconfig.c ibFindLstn.c \
	ibEvent.c local_lockout.c self_test.c pass_control.c ibstop.c \
	ibConfLex.c ibConfLex.h ibConfYacc.c ibConfYacc.h ibVers.c ibVers.h

libgpib_la_CFLAGS = $(LIBGPIB_CFLAGS) -DDEFAULT_CONFIG_FILE="\"$(sysconfdir)/gpib.conf\""
libgpib_la_LDFLAGS = -version-info @GPIB_SO_VERSION@ -Wl,--version-script=$(srcdir)/gpib_version_script -lpthread

$(srcdir)/ibConfLex.c $(srcdir)/ibConfLex.h: $(srcdir)/ibConfLex.l
	$(LEX) -DYY_NO_INPUT $<

$(srcdir)/ibConfYacc.c $(srcdir)/ibConfYacc.h: $(srcdir)/ibConfYacc.y
	$(YACC) -Wno-yacc -d -p gpib_yy -o $(srcdir)/ibConfYacc.c $<

$(srcdir)/ibVers.h: 
	if git status >/dev/null 2>&1 ; then \
		echo "#define GPIB_SCM_VERSION $(VERSION) [`git show --oneline -s | cut -d ' ' -f 1`]" >$(srcdir)/ibVers.h ;\
	else \
		echo "#define GPIB_SCM_VERSION $(VERSION)" >$(srcdir)/ibVers.h ;\
	fi

# pkg-config
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=libgpib.pc