summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc505/Makefile.am
blob: 3e6bac1b71d5a39994718410c22e76aff96e21ca (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
##
## $Id$
##

CLEANDIRS =
EXTRA_DIST =
noinst_DATA =

include $(top_srcdir)/../../../automake/compile.am
include $(top_srcdir)/../../../automake/lib.am

include_HEADERS = ictrl/ictrl.h

# ictrl
ictrl_C_FILES = ictrl/ictrl.c
EXTRA_DIST += $(ictrl_C_FILES)

ictrl_rel_OBJECTS = $(ictrl_C_FILES:ictrl/%.c=icrtl/$(ARCH)/%.$(OBJEXT))

ictrl/$(ARCH)/$(dirstamp):
	@$(mkdir_p) ictrl/$(ARCH)
	@: > ictrl/$(ARCH)/$(dirstamp)
ictrl/$(ARCH)/%.$(OBJEXT): ictrl/%.c ictrl/$(ARCH)/$(dirstamp)
	${COMPILE} -o $@ -c $<
ictrl/$(ARCH)/ictrl.rel: $(ictrl_rel_OBJECTS)
	$(make-rel)
CLEANDIRS += ictrl/o-optimize ictrl/o-debug
noinst_DATA += ictrl/$(ARCH)/ictrl.rel

## timer
timer_C_FILES = timer/timer.c
EXTRA_DIST += $(timer_C_FILES)

timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=timer/$(ARCH)/%.$(OBJEXT))

timer/$(ARCH)/$(dirstamp):
	@$(mkdir_p) timer/$(ARCH)
	@: > timer/$(ARCH)/$(dirstamp)
timer/$(ARCH)/%.$(OBJEXT): timer/%.c timer/$(ARCH)/$(dirstamp)
	${COMPILE} -o $@ -c $<
timer/$(ARCH)/timer.rel: $(timer_rel_OBJECTS)
	$(make-rel)
CLEANDIRS += timer/o-optimize timer/o-debug
noinst_DATA += timer/$(ARCH)/timer.rel

## vector
vectors_S_FILES = vectors.S
EXTRA_DIST += $(vectors_S_FILES)

vectors_rel_OBJECTS = \
    $(vectors_S_FILES:vectors/%.S=vectors/${ARCH}/%.$(OBJEXT))

vectors/$(ARCH)/$(dirstamp):
	@$(mkdir_p) vectors/$(ARCH)
	@: > vectors/$(ARCH)/$(dirstamp)
vectors/$(ARCH)/%.$(OBJEXT): vectors/%.S vectors/$(ARCH)/$(dirstamp)
	${CCASCOMPILE} -o $@ -c $<
vectors/$(ARCH)/vectors.rel: $(vectors_rel_OBJECTS)
	$(make-rel)
CLEANDIRS += vectors/o-optimize vectors/o-debug
noinst_DATA += vectors/$(ARCH)/vectors.rel

## --

all-local: $(PREINSTALL_FILES)

PREINSTALL_FILES =

$(PROJECT_INCLUDE)/$(dirstamp):
	@$(mkdir_p) $(PROJECT_INCLUDE)
	@: > $(PROJECT_INCLUDE)/$(dirstamp)

$(PROJECT_INCLUDE)/ictrl.h: ictrl/ictrl.h $(PROJECT_INCLUDE)/$(dirstamp)
	$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ictrl.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/ictrl.h

include $(top_srcdir)/../../../automake/local.am