File: QNX4.rules

package info (click to toggle)
xutils-dev 1%3A7.7%2B5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 5,776 kB
  • ctags: 747
  • sloc: sh: 14,258; ansic: 5,986; cpp: 392; makefile: 371; perl: 74
file content (65 lines) | stat: -rw-r--r-- 1,519 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
XCOMM platform:  $XFree86: xc/config/cf/QNX4.rules,v 1.1 1999/12/27 00:45:43 robin Exp $

XCOMM Rules to work around wlib for QNX...

#define LinkFile(tofile, fromfile)				@@\
tofile:: fromfile						@@\
	$(CP) fromfile tofile					@@\
								@@\
includes:: tofile						@@\
								@@\
depend:: tofile							@@\
								@@\
clean::								@@\
	RemoveFile(tofile)

#define ObjectFromSpecialSource(dst, src, flags)		@@\
NoConfigRec(dst.c)						@@\
								@@\
dst.c: src.c							@@\
	RemoveFile($@)						@@\
	$(CP) $? $@						@@\
								@@\
SpecialCObjectRule(dst,NullParameter,flags)			@@\
								@@\
includes:: dst.c						@@\
								@@\
depend:: dst.c							@@\
								@@\
clean::								@@\
	RemoveFile(dst.c)


#define ObjectFromSpecialAsmSource(dst, src, flags)		@@\
dst.S: src.S							@@\
	RemoveFile($@)						@@\
	$(CP) $? $@						@@\
								@@\
dst.o: dst.S							@@\
	AssembleObject(dst,flags)				@@\
								@@\
dst.i: dst.S							@@\
	CPPOnlyAsm(dst,flags)					@@\
								@@\
depend:: dst.S							@@\
								@@\
clean::								@@\
	RemoveFile(dst.S)

/* This is the rule to make reloc. OMF objects. We use a little
 * trick which works only for OMF....
 * "catomf" can be downloaded from
 * http://prdownloads.sourceforge.net/openqnx/catomf.tar.gz
 * or contact Rick Lake <rick@anp.nl>
 */
#define NormalRelocatableTarget(objname,objlist)		@@\
AllTarget(objname.Osuf)						@@\
								@@\
objname.Osuf: objlist $(EXTRALIBRARYDEPS)			@@\
	RemoveFile($@)						@@\
	/usr/local/bin/catomf -O $@ objlist