File: Makefile

package info (click to toggle)
faumachine 20180503-4
  • links: PTS
  • area: main
  • in suites: buster
  • 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 (50 lines) | stat: -rw-r--r-- 1,426 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
#
# Copyright (C) 2017 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.
#

CDROM_IMAGE := Knoppix-4.0.2-CD-A Knoppix-4.0.2-CD-B
SIMULATION_PC := pc-4.vhdl

ADDITIONAL_USER_VHDL := \
	01generate.pc1.vhdl \
	02generate.pc2.vhdl \
	fi.vhdl \
	03generate.pc1.vhdl \
	04generate.pc2.vhdl

include $(dir $(shell which faum))/../share/faumachine/vhdl/experiment.mk

generate:
	touch $@

%.pc1.vhdl: $(EXP_DIR)/%.pc1
	$(FAUM_GEN_VHDL) $< \
		| grep -v wakeup_screensaver \
		| sed -e 's/Knoppix402CD/Knoppix402CDA/' \
		| sed -e 's/power_button/pc1_power_button/g' \
		| sed -e 's/cdrom/pc1_cdrom/g' \
		| sed -e 's/key,/pc1_key,/g' \
		| sed -e 's/key(/pc1_key(/g' \
		| sed -e 's/int_asc_text0/pc1_int_asc_text0/g' \
		| sed -e 's/screen_shot/pc1_screen_shot/g' \
		> $@

%.pc2.vhdl: $(EXP_DIR)/%.pc2
	$(FAUM_GEN_VHDL) $< \
		| grep -v wakeup_screensaver \
		| sed -e 's/Knoppix402CD/Knoppix402CDB/' \
		| sed -e 's/power_button/pc2_power_button/g' \
		| sed -e 's/cdrom/pc2_cdrom/g' \
		| sed -e 's/key,/pc2_key,/g' \
		| sed -e 's/key(/pc2_key(/g' \
		| sed -e 's/int_asc_text0/pc2_int_asc_text0/g' \
		| sed -e 's/screen_shot/pc2_screen_shot/g' \
		> $@

clean distclean::
	$(RM) *.pc1.vhdl
	$(RM) *.pc2.vhdl
	$(RM) generate