(svn r2882) Some fixes for MorphOS (by tokai)
authortron
Sun, 21 Aug 2005 10:44:57 +0000
changeset 2356 9277224514f6
parent 2355 8797c6680c37
child 2357 dbc49e5f682a
(svn r2882) Some fixes for MorphOS (by tokai)
- Don't track dependencies on system headers
- Add an include path
- Silence a warning regarding a bad signal prototype
- Remove executable flag from pictures
- Add proper OTTD icon
Makefile
os/morphos/icons/OpenTTD.info
os/morphos/icons/docs.info
os/morphos/icons/drawer.info
unix.c
--- a/Makefile	Sun Aug 21 06:05:51 2005 +0000
+++ b/Makefile	Sun Aug 21 10:44:57 2005 +0000
@@ -332,7 +332,7 @@
 BASECFLAGS += -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic -mpowerpc-gpopt -force_cpusubtype_ALL
 else
 ifdef MORPHOS
-BASECFLAGS += -O2 -noixemul -fstrict-aliasing -fexpensive-optimizations
+BASECFLAGS += -I/gg/os-include -O2 -noixemul -fstrict-aliasing -fexpensive-optimizations
 BASECFLAGS += -mcpu=604 -fno-inline -mstring -mmultiple
 else
 BASECFLAGS += -O2
@@ -1002,15 +1002,15 @@
 
 .deps/%.d: %.c $(MAKE_CONFIG) table/strings.h endian_target.h
 	@echo '===> Determining dependencies of $<'
-	$(Q)$(CC) $(CFLAGS) $(CDEFS) -M $< > $@
+	$(Q)$(CC) $(CFLAGS) $(CDEFS) -MM $< > $@
 
 .deps/%.d: %.cpp $(MAKE_CONFIG) table/strings.h endian_target.h
 	@echo '===> Determining dependencies of $<'
-	$(Q)$(CXX) $(CFLAGS) $(CDEFS) -M $< > $@
+	$(Q)$(CXX) $(CFLAGS) $(CDEFS) -MM $< > $@
 
 .deps/%.d: %.m $(MAKE_CONFIG) table/strings.h endian_target.h
 	@echo '===> Determining dependencies of $<'
-	$(Q)$(CC) $(CFLAGS) $(CDEFS) -M $< > $@
+	$(Q)$(CC) $(CFLAGS) $(CDEFS) -MM $< > $@
 
 
 %.o: %.c $(MAKE_CONFIG)
Binary file os/morphos/icons/OpenTTD.info has changed
--- a/unix.c	Sun Aug 21 06:05:51 2005 +0000
+++ b/unix.c	Sun Aug 21 10:44:57 2005 +0000
@@ -31,6 +31,10 @@
 #ifdef __MORPHOS__
 #include <exec/types.h>
 ULONG __stack = (1024*1024)*2; // maybe not that much is needed actually ;)
+
+// The system supplied definition of SIG_IGN does not match
+#undef SIG_IGN
+#define SIG_IGN (void (*)(int))1
 #endif /* __MORPHOS__ */
 
 #ifdef __AMIGA__