1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../.. |
---|
9 | subdir = libcpu/hppa1.1/semaphore |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | PGM = ${ARCH}/semaphore.rel |
---|
17 | |
---|
18 | # C source names, if any, go here -- minus the .c |
---|
19 | C_PIECES = semaphore |
---|
20 | C_FILES = $(C_PIECES:%=%.c) |
---|
21 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
22 | |
---|
23 | H_PIECES = semaphore |
---|
24 | H_FILES = $(H_PIECES:%=$(srcdir)/%.h) |
---|
25 | |
---|
26 | # Assembly source names, if any, go here -- minus the .S |
---|
27 | S_PIECES = |
---|
28 | S_FILES = $(S_PIECES:%=%.S) |
---|
29 | S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o) |
---|
30 | |
---|
31 | SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
32 | OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
33 | |
---|
34 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
35 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
36 | |
---|
37 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
38 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
39 | |
---|
40 | INSTALLDIRS = $(PROJECT_INCLUDE) |
---|
41 | |
---|
42 | $(INSTALLDIRS): |
---|
43 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
44 | |
---|
45 | # |
---|
46 | # (OPTIONAL) Add local stuff here using += |
---|
47 | # |
---|
48 | |
---|
49 | DEFINES += |
---|
50 | CPPFLAGS += |
---|
51 | CFLAGS += $(CFLAGS_OS_V) |
---|
52 | |
---|
53 | LD_PATHS += |
---|
54 | LD_LIBS += |
---|
55 | LDFLAGS += |
---|
56 | |
---|
57 | # Add your list of files to delete here. |
---|
58 | |
---|
59 | CLEAN_ADDITIONS += |
---|
60 | CLOBBER_ADDITIONS += |
---|
61 | |
---|
62 | ${PGM}: ${SRCS} ${OBJS} |
---|
63 | $(make-rel) |
---|
64 | |
---|
65 | all: ${ARCH} $(SRCS) $(PGM) |
---|
66 | @$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE) |
---|
67 | |
---|
68 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
69 | cd $(top_builddir) \ |
---|
70 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|