File: Makefile

package info (click to toggle)
acpica-unix 20250404-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 39,648 kB
  • sloc: ansic: 139,761; sh: 4,385; yacc: 4,377; lex: 1,345; makefile: 1,337
file content (34 lines) | stat: -rwxr-xr-x 757 bytes parent folder | download | duplicates (4)
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
# Before running this file, we assume we have generated all tables by running
# the command `$(ASL) -T ALL`
#
# Note: the NAME flag is required when running the test

aml_obj=$(NAME).aml
dsl_obj=$(NAME).dsl
aml_obj2=$(NAME)_recomp.aml


all: $(aml_obj2)

# recompile and binary compare
$(aml_obj2): %_recomp.aml: %.dsl
	$(ASL) -p `basename $@` $< > /dev/null 2> /dev/null
	$(acpibin) -c $@ $(patsubst %_recomp.aml,%.aml,$@) > /dev/null 2> /dev/null
	printf "Data table %s PASS\n" $(basename $< .dsl)

# disassemble
$(dsl_obj): %.dsl:  %.aml
	$(ASL) -d $< > /dev/null 2> /dev/null

# initial compile
$(aml_obj): %.aml:  %.asl
	$(ASL) $< > /dev/null 2> /dev/null


templates :
	sh templates.sh 1

.PHONY: clean
clean:
	rm -f *.asl *.aml *.dsl *.hex diff.log