minix/commands/i386/Makefile
Tomas Hruby 41d481b065 gas2ack
- an asmconv based tool for conversion from GNU ia32 assembly to ACK assembly
    
    - in contrast to asmconv it is a one way tool only
    
    - as the GNU assembly in Minix does not prefix global C symbols with _ gas2ack
      detects such symbols and prefixes them to be compliant with the ACK convention
    
    - gas2ack preserves comments and unexpanded macros
    
    - bunch of fixes to the asmconv GNU->ACK direction
    
    - support of more instructions that ACK does not know but are in use in Minix
    
    - it is meant as a temporary solution as long as ACK will be a supported
      compiler for the core system
2009-10-30 15:57:35 +00:00

31 lines
581 B
Makefile
Executable file

# Makefile for commands/i386.
CFLAGS = -D_MINIX -D_POSIX_SOURCE
CCLD = $(CC) -i $(CFLAGS)
MAKE = exec make -$(MAKEFLAGS)
CC = exec cc
all:: acd
acd: acd.c
$(CCLD) -o $@ -DARCH=\"`arch`\" -DDESCR=\"/usr/lib/descr\" $?
install -S 50kw $@
install:: /usr/bin/acd /usr/bin/cc /usr/bin/m2 /usr/bin/pc \
/usr/lib/descr
/usr/bin/acd: acd
install -cs -o bin $? $@
/usr/bin/cc /usr/bin/m2 /usr/bin/pc: /usr/bin/acd
install -l $? $@
/usr/lib/descr: acd.descr
install $? $@
clean::
rm -rf a.out core acd
all install clean::
cd asmconv && $(MAKE) $@
cd gas2ack && $(MAKE) $@