source: multiio/pcmmio/original/Makefile @ 6957d53

Last change on this file since 6957d53 was 6957d53, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 17, 2011 at 4:39:38 PM

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

  • Makefile, main_pcmmio_adc.c, pcmmio_commands.h, pcmmio_shell.c: Add set mode command. Add capability to read a single ADC. Updates from Ada version.
  • rootfs/set_adc_modes, rootfs/test_adc: New files.
  • Property mode set to 100644
File size: 1.7 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
10#MAINS= buffered.c dacbuff.c dacout.c flash.c getall.c getvolt.c \
11#  poll.c repeat.c simple_rtems.c pcmmio_shell.c
12
13MAINS= pcmmio_shell.c
14
15PGMS=$(MAINS:%.c=${ARCH}/%.exe)
16
17# optional managers required
18MANAGERS=all
19#DEFINES += -DTESTING
20
21# C source names
22#SHARED_CSRCS += mio_io_linux.c
23SHARED_CSRCS = mio_io.c kbhit.c
24SHARED_CSRCS += main_pcmmio_adc_mode.c
25SHARED_CSRCS += main_pcmmio_din.c main_pcmmio_dout.c
26SHARED_CSRCS += main_pcmmio_adc.c main_pcmmio_dac.c
27SHARED_CSRCS += main_pcmmio_irq.c
28SHARED_CSRCS += main_pcmmio_benchmark.c
29SHARED_CSRCS += mio_io_rtems.c
30SHARED_CSRCS += FilesystemImage.c
31
32SHARED_COBJS = $(SHARED_CSRCS:%.c=${ARCH}/%.o)
33SHARED_CONFIG = ${ARCH}/rtems_config.o
34
35CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h
36
37include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
38include $(RTEMS_CUSTOM)
39include $(PROJECT_ROOT)/make/leaf.cfg
40
41LDFLAGS += -g
42OBJS= $(COBJS) $(CXXOBJS) $(ASOBJS) $(SHARED_COBJS) $(SHARED_CONFIG)
43
44all:    ${ARCH} FilesystemImage.c FilesystemImage.h $(OBJS) $(PGMS)
45
46${ARCH}/pcmmio_shell.exe: pcmmio_shell.c $(OBJS)
47        $(CC) $(LDFLAGS) -o $@ $< $(SHARED_COBJS)
48
49${ARCH}/%.exe: %.c $(OBJS)
50        $(CC) $(LDFLAGS) -o $@ $< $(SHARED_COBJS) $(SHARED_CONFIG)
51
52FilesystemImage: rootfs/test_adc rootfs/set_adc_modes
53        (cd rootfs ; tar cf - --exclude=.svn \
54          --exclude=CVS --exclude=.cvsignore .) >$(@)
55
56FilesystemImage.c FilesystemImage.h: FilesystemImage
57        $(PROJECT_ROOT)/bin/rtems-bin2c FilesystemImage FilesystemImage
58
59FilesystemImage.o: FilesystemImage.c
60        $(CC) $(CFLAGS) $(CPU_CFLAGS) -c $<
61
Note: See TracBrowser for help on using the repository browser.