-## AmigaOS, GCC 2.95.1 (or lower, 2.95.3 does NOT work!)
-#ifeq ($(shell $(CC) $(CFLAGS) -dumpmachine), m68k-amigaos)
-#OBJS += amiga.o
-#CFLAGS += -D__AMIGAVERSION__=\"$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_POINT)\" -D__AMIGADATE__=\"`date +%d.%m.%Y`\" -W -Wall -m68020 -Os -noixemul -fbaserel -msmall-code
-#LDFLAGS += -m68020 -noixemul -fbaserel
-#LIBS = -lm /gg/lib/libb/libm020/libnix/swapstack.o
-#amiga.o: amiga.c amiga.h config.h
-#endif
-#
+# AmigaOS
+@AMIGAOS_ONLY@OBJS += amiga.o
+@AMIGAOS_ONLY@CFLAGS += -D__AMIGAVERSION__=\"$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_POINT)\" -D__AMIGADATE__=\"`date +%d.%m.%Y`\" -W -Wall -m68020 -Os -noixemul -fbaserel -msmall-code
+@AMIGAOS_ONLY@LDFLAGS += -m68020 -noixemul -fbaserel
+@AMIGAOS_ONLY@LIBS = -lm /gg/lib/libb/libm020/libnix/swapstack.o
+@AMIGAOS_ONLY@amiga.o: amiga.c amiga.h config.h
+