diff --git a/src/makefiles/Makefile.macos b/src/makefiles/Makefile.macos new file mode 100644 index 0000000..1b41bbc --- /dev/null +++ b/src/makefiles/Makefile.macos @@ -0,0 +1,39 @@ +CC = gcc +CFLAGS = -I. -Wall -O2 +CFLAGS += $(CDEFS) + +OBJECTS = args.o \ + avra.o \ + coff.o \ + device.o \ + directiv.o \ + expr.o \ + file.o \ + macro.o \ + map.o \ + mnemonic.o \ + parser.o \ + stdextra.o + +.PHONY: all clean + +all: avra + +avra: $(OBJECTS) + $(CC) -o $@ $^ + +clean: + rm -f $(OBJECTS) avra + +args.o: args.c misc.h args.h +avra.o: avra.c misc.h args.h avra.h device.h +coff.o: coff.c coff.h +device.o: device.c misc.h avra.h device.h +directiv.o: directiv.c misc.h args.h avra.h device.h +expr.o: expr.c misc.h avra.h +file.o: file.c misc.h avra.h +macro.o: macro.c misc.h args.h avra.h +map.o: map.c args.h avra.h +mnemonic.o: mnemonic.c misc.h avra.h device.h +parser.o: parser.c misc.h avra.h +stdextra.o: stdextra.c misc.h diff --git a/src/makefiles/Makefile.osx b/src/makefiles/Makefile.osx deleted file mode 100644 index aaed69d..0000000 --- a/src/makefiles/Makefile.osx +++ /dev/null @@ -1,17 +0,0 @@ -CC=gcc -SOURCE=args.c \ - avra.c \ - coff.c \ - device.c \ - directiv.c \ - expr.c \ - file.c \ - macro.c \ - map.c \ - mnemonic.c \ - parser.c \ - stdextra.c - -all: - $(CC) $(CDEFS) -o avra $(SOURCE) -