minix/commands/i386/gas2ack/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

29 lines
562 B
Makefile

# Makefile for gas2ack.
CFLAGS= $(OPT)
LDFLAGS= -i
CC = exec cc
all: gas2ack
OBJ= asm86.o gas2ack.o globals.o parse_gnu.o \
tokenize.o emit_ack.o
gas2ack: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ)
install: /usr/bin/gas2ack
/usr/bin/gas2ack: gas2ack
install -cs -o bin gas2ack $@
clean:
rm -f $(OBJ) gas2ack core
# Dependencies.
asm86.o: asm86.h asmconv.h token.h
gas2ack.o: asmconv.h languages.h asm86.h
globals.o: asm86.h
parse_gnu.o: asmconv.h languages.h token.h asm86.h
tokenize.o: asmconv.h token.h
emit_ack.o: asmconv.h languages.h token.h asm86.h