source: multiio/pcmmio/original/Makefile @ 541e6d8

Last change on this file since 541e6d8 was 541e6d8, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 2011 at 2:17:15 PM

2011-02-17 Joel Sherrill <joel.sherrill@…>

  • Makefile: Use ${HOME}
  • main_pcmmio_benchmark.c, main_pcmmio_irq.c: Clean up.
  • mio_io_rtems.c: Set error code in more cases.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1#
2#  $Id$
3#
4
5RTEMS_MAKEFILE_PATH=${HOME}/centaur/install/i386-rtems4.10/pc386/
6#
7#  RTEMS_MAKEFILE_PATH is typically set in an environment variable
8#
9
10MAINS= buffered.c dacbuff.c dacout.c flash.c getall.c getvolt.c \
11  poll.c repeat.c simple_rtems.c pcmmio_shell.c
12
13PGMS=$(MAINS:%.c=${ARCH}/%.exe)
14
15# optional managers required
16MANAGERS=all
17#DEFINES += -DTESTING
18
19# C source names
20#SHARED_CSRCS += mio_io_linux.c
21SHARED_CSRCS = mio_io.c kbhit.c
22SHARED_CSRCS += main_pcmmio_din.c main_pcmmio_dout.c
23SHARED_CSRCS += main_pcmmio_adc.c main_pcmmio_dac.c
24SHARED_CSRCS += main_pcmmio_irq.c
25SHARED_CSRCS += main_pcmmio_benchmark.c
26SHARED_CSRCS += mio_io_rtems.c
27
28SHARED_COBJS = $(SHARED_CSRCS:%.c=${ARCH}/%.o)
29SHARED_CONFIG = ${ARCH}/rtems_config.o
30
31include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
32include $(RTEMS_CUSTOM)
33include $(PROJECT_ROOT)/make/leaf.cfg
34
35OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS) $(SHARED_COBJS) $(SHARED_CONFIG)
36
37all:    ${ARCH} $(OBJS) $(PGMS)
38
39${ARCH}/pcmmio_shell.exe: pcmmio_shell.c $(OBJS)
40        $(CC) $(LDFLAGS) -o $@ $< $(SHARED_COBJS)
41
42${ARCH}/%.exe: %.c $(OBJS)
43        $(CC) $(LDFLAGS) -o $@ $< $(SHARED_COBJS) $(SHARED_CONFIG)
Note: See TracBrowser for help on using the repository browser.