1XCOMM platform: $XFree86: xc/config/cf/QNX4.rules,v 1.1 1999/12/27 00:45:43 robin Exp $ 2 3XCOMM Rules to work around wlib for QNX... 4 5#define LinkFile(tofile, fromfile) @@\ 6tofile:: fromfile @@\ 7 $(CP) fromfile tofile @@\ 8 @@\ 9includes:: tofile @@\ 10 @@\ 11depend:: tofile @@\ 12 @@\ 13clean:: @@\ 14 RemoveFile(tofile) 15 16#define ObjectFromSpecialSource(dst, src, flags) @@\ 17NoConfigRec(dst.c) @@\ 18 @@\ 19dst.c: src.c @@\ 20 RemoveFile($@) @@\ 21 $(CP) $? $@ @@\ 22 @@\ 23SpecialCObjectRule(dst,NullParameter,flags) @@\ 24 @@\ 25includes:: dst.c @@\ 26 @@\ 27depend:: dst.c @@\ 28 @@\ 29clean:: @@\ 30 RemoveFile(dst.c) 31 32 33#define ObjectFromSpecialAsmSource(dst, src, flags) @@\ 34dst.S: src.S @@\ 35 RemoveFile($@) @@\ 36 $(CP) $? $@ @@\ 37 @@\ 38dst.o: dst.S @@\ 39 AssembleObject(dst,flags) @@\ 40 @@\ 41dst.i: dst.S @@\ 42 CPPOnlyAsm(dst,flags) @@\ 43 @@\ 44depend:: dst.S @@\ 45 @@\ 46clean:: @@\ 47 RemoveFile(dst.S) 48 49/* This is the rule to make reloc. OMF objects. We use a little 50 * trick which works only for OMF.... 51 * "catomf" can be downloaded from 52 * http://prdownloads.sourceforge.net/openqnx/catomf.tar.gz 53 * or contact Rick Lake <rick@anp.nl> 54 */ 55#define NormalRelocatableTarget(objname,objlist) @@\ 56AllTarget(objname.Osuf) @@\ 57 @@\ 58objname.Osuf: objlist $(EXTRALIBRARYDEPS) @@\ 59 RemoveFile($@) @@\ 60 /usr/local/bin/catomf -O $@ objlist 61 62 63 64 65 66