File: Makefile.am

package info (click to toggle)
faumachine 20180503-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 61,272 kB
  • sloc: ansic: 272,290; makefile: 6,199; asm: 4,251; sh: 3,022; perl: 886; xml: 563; pascal: 311; lex: 214; vhdl: 204
file content (91 lines) | stat: -rw-r--r-- 2,028 bytes parent folder | download
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# Copyright (C) 2005-2009 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
#

noinst_LIBRARIES = libsig.a

BUILT_SOURCES = \
	sig_gen.h

libsig_a_CFLAGS = -I. -I../lib -I../sim
libsig_a_SOURCES = \
	sig_agp_bus.c \
	sig_boolean.c \
	sig_cs.c \
	sig_cs8.c \
	sig_cs16.c \
	sig_cs32.c \
	sig_cs64.c \
	sig_dmi_bus.c \
	sig_eth.c \
	sig_floppy.c \
	sig_host_bus.c \
	sig_host775_bus.c \
	sig_i2c_bus.c \
	sig_icc_bus.c \
	sig_ide_bus.c \
	sig_integer.c \
	sig_isa_bus.c \
	sig_isa_dma.c \
	sig_keyboard.c \
	sig_magneto_optical.c \
	sig_manage.c \
	sig_match.c \
	sig_mdi.c \
	sig_mech_mouse.c \
	sig_mem_bus.c \
	sig_opt_rgb.c \
	sig_parallel.c \
	sig_pci_bus.c \
	sig_pci_idsel.c \
	sig_pci64_bus.c \
	sig_pci64_idsel.c \
	sig_ps2_main.c \
	sig_sata_bus.c \
	sig_scsi_bus.c \
	sig_serial.c \
	sig_shugart_bus.c \
	sig_sound.c \
	sig_std_logic.c \
	sig_string.c \
	sig_telephone.c \
	sig_usb_bus.c \
	sig_video.c

sig_gen.h: ALWAYS
	( \
		echo "/*" ; \
		echo " * WARNING:" ; \
		echo " *" ; \
		echo " * Automatically generated." ; \
		echo " */" ; \
		echo "" ; \
		echo "#ifndef __SIG_GEN_H_INCLUDED" ; \
		echo "#define __SIG_GEN_H_INCLUDED" ; \
		echo "" ; \
		echo "enum sig_gen_type {" ; \
		ls ../sig/sig_*.c \
		| grep -v sig_gen_bus \
		| while read file ; do \
			name=`echo "$${file}" | sed -e 's,../sig/sig_,,' | sed -e 's,\\.c,,'` ; \
			echo "	SIG_GEN_$${name}," | tr 'a-z' 'A-Z' ; \
		done ; \
		ls ../conn/sig_*_conn.conn \
		| while read file ; do \
			name=`echo "$${file}" | sed -e 's,../conn/sig_,,' | sed -e 's,\\.conn,,'` ; \
			echo "	SIG_GEN_$${name}," | tr 'a-z' 'A-Z' ; \
		done ; \
		echo "};" ; \
		echo "" ; \
		echo "#endif /* __SIG_GEN_H_INCLUDED */" ; \
	) > sig_gen.h.tmp
	if cmp sig_gen.h sig_gen.h.tmp ; then \
		rm sig_gen.h.tmp ; \
	else \
		mv sig_gen.h.tmp sig_gen.h ; \
	fi

ALWAYS: