62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
subdirs=arch,format
|
|
targets=libasm,asm,asm-static,deasm
|
|
cppflags_force=-I ../include
|
|
cppflags=
|
|
cflags_force=-W `pkg-config --cflags cpp`
|
|
cflags=-Wall -g -O2 -pedantic
|
|
ldflags_force=-ldl
|
|
dist=Makefile,arch.h,code.h,common.h,format.h,parser.h,token.h
|
|
|
|
[libasm]
|
|
type=library
|
|
sources=arch.c,asm.c,code.c,format.c,parser.c,token.c
|
|
cflags=-fPIC
|
|
ldflags=`pkg-config --libs cpp`
|
|
install=$(LIBDIR)
|
|
|
|
[asm]
|
|
type=binary
|
|
sources=main.c
|
|
depends=libasm.so
|
|
ldflags=-L. -Wl,-rpath,$(LIBDIR) -lasm
|
|
install=$(BINDIR)
|
|
|
|
[asm-static]
|
|
type=binary
|
|
depends=main.o,libasm.a
|
|
ldflags=`pkg-config --libs cpp` main.o libasm.a
|
|
|
|
[deasm]
|
|
type=binary
|
|
sources=deasm.c
|
|
depends=libasm.so
|
|
ldflags=-L. -Wl,-rpath,$(LIBDIR) -lasm
|
|
install=$(BINDIR)
|
|
|
|
[arch.c]
|
|
depends=../include/Asm/arch.h,../include/Asm/asm.h,arch.h,code.h,../config.h
|
|
|
|
[asm.c]
|
|
depends=../include/Asm.h,code.h,parser.h,../config.h
|
|
|
|
[code.c]
|
|
depends=../include/Asm.h,../include/Asm/arch.h,../include/Asm/asm.h,../include/Asm/format.h,arch.h,code.h,format.h
|
|
|
|
[deasm.c]
|
|
depends=../include/Asm.h,../include/Asm/arch.h,../include/Asm/asm.h,../include/Asm/format.h,../config.h
|
|
|
|
[format.c]
|
|
depends=../include/Asm/asm.h,../include/Asm/format.h,code.h,format.h,../config.h
|
|
|
|
[main.c]
|
|
depends=../include/Asm/asm.h,../config.h
|
|
|
|
[parser.c]
|
|
depends=parser.h,token.h
|
|
|
|
[scanner.c]
|
|
depends=../include/Asm.h,token.h
|
|
|
|
[token.c]
|
|
depends=common.h,token.h
|