summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/ibm/pgc/Imakefile
blob: f5a50af28d8e5d8252465a1a2b975faa951b4d94 (plain)
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
XCOMM $XConsortium: Imakefile,v 1.3 93/09/04 17:31:47 rws Exp $
#include <Server.tmpl>

SRCS = pgcGlobal.c pgcCmap.c pgcWindow.c  pgcCpArea.c pgcPntWin.c

OBJS = pgcGlobal.o pgcCmap.o pgcWindow.o pgcCpArea.o pgcPntWin.o

INCLUDES = -I../ -I../AIX -I../../../mfb -I../../../cfb -I../../../include -I$(INCLUDESRC) -I../common -I../../../mi

NormalRelocatableTarget(pgc,$(OBJS))

#if ProfileServer
ProfiledRelocatableTarget(pgc,$(OBJS))
#endif
#if DebugServer
DebuggedRelocatableTarget(pgc,$(OBJS))
#endif

#if DebugServer && ProfileServer
DebuggedAndProfiledLibraryObjectRule()
.s.o:
	$(RM) -f m.s $@ debugger/$@ profiled/$@
	$(CPP) $(CFLAGS) $*.s > m.s
	$(AS) -o $@ m.s
	$(CP) $@ debugger/$@
	$(CP) $@ profiled/$@
	$(RM) -f m.s
#else
# if DebugServer
DebuggedLibraryObjectRule()
.s.o:
	$(RM) -f m.s $@ debugger/$@
	$(CPP) $(CFLAGS) $*.s > m.s
	$(AS) -o $@ m.s
	$(CP) $@ debugger/$@
	$(RM) -f m.s
# else
#  if ProfileServer
ProfiledLibraryObjectRule()
.s.o:
	$(RM) -f m.s $@ profiled/$@
	$(CPP) $(CFLAGS) $*.s > m.s
	$(AS) -o $@ m.s
	$(CP) $@ profiled/$@
	$(RM) -f m.s
#  else
NormalLibraryObjectRule()
.s.o:
	$(RM) -f m.s $@
	$(CPP) -E $(CFLAGS) $*.s > m.s
	$(AS) -o $@ m.s
	$(RM) -f m.s
#  endif
# endif
#endif

DependTarget()

LintLibraryTarget(pgc,$(SRCS))
NormalLintTarget($(SRCS))