blob: 180afc4ee9384e648c8ca3a55ee5d6515900dd00 (
plain)
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
|
TEMPLATE = app
LIBS += ../../lib/libeu.a
QMAKE_CFLAGS += -Wno-unused-function
include(../../elfutils.pri)
include(../../lib/libheaders.pri)
mnemonics32.target = i386.mnemonics
mnemonics32.commands = make -f $$PWD/../extras.mk srcdir=$$PWD/../ i386.mnemonics
mnemonics64.target = x86_64.mnemonics
mnemonics64.commands = make -f $$PWD/../extras.mk srcdir=$$PWD/../ x86_64.mnemonics
mylex.target = i386_lex.c
mylex.depends = i386_parse.c
mylex.commands = flex -Pi386_ -o i386_lex.c $$PWD/../i386_lex.l
myyacc.target = i386_parse.c
myyacc.commands = bison -pi386_ -d -o i386_parse.c $$PWD/../i386_parse.y
OTHER_FILES += \
$$PWD/../extras.mk \
$$PWD/../defs/i386 \
$$PWD/../i386_lex.l \
$$PWD/../i386_parse.y
SOURCES += \
$$PWD/../i386_gendis.c
GENERATED_SOURCES += \
i386_parse.c \
i386_lex.c
GENERATED_HEADERS += \
i386_parse.h
PRE_TARGETDEPS += \
i386.mnemonics \
x86_64.mnemonics
QMAKE_EXTRA_TARGETS += \
mylex \
myyacc \
mnemonics32 \
mnemonics64
DEFINES += NMNES='$(shell wc -l < i386.mnemonics)'
|