Julien Delange a52104cf46 e1000 driver now compiles with fewer modifications
- Change some include path in the e1000 drivers
  - Add some files from the FreeBSD source tree (modification in
    freebsd-to-rtems.py)
    - Avoid inconsistent functions declarations: the bool_t and/or
    boolean_t are not the same between rtems and freebsd so that a
    function with the prototype bool_t foobar() and another boolean_t
    foobar() does not compile on rtems. (see if_igb.c for example)
      Joel Note: These are still inconsistent on the FreeBSD side and need
                 to be addressed by them. We will just make the prototype
                 match the body until they give us a solution.
2012-03-26 09:51:49 -05:00

41 lines
758 B
Makefile

include ../../config.inc
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg
APP_PIECES = init \
test-file-system
APP_O_FILES = $(APP_PIECES:%=%.o)
APP_DEP_FILES = $(APP_PIECES:%=%.dep)
APP = app.exe
DEPFLAGS = -MT $@ -MD -MP -MF $*.dep
AM_CPPFLAGS += -I $(INSTALL_BASE)/include -I.
CFLAGS += $(DEPFLAGS) $(GCCFLAGS) $(AM_CPPFLAGS) -Wno-unused
LINK_LIBS += $(INSTALL_BASE)/libbsd.a
CXXFLAGS += $(CFLAGS)
all: $(APP)
$(APP): $(APP_O_FILES)
$(CC) $(CXXFLAGS) $^ $(LINK_LIBS) -o $(APP)
clean:
rm -f $(APP_O_FILES) $(APP_DEP_FILES)
dist:
cd .. && tar cjf usb-demo/usb-demo.tar.bz2 \
`find usb-demo -name '*.h' -o -name '*.c'` usb-demo/Makefile
%.dep:
touch $@
include $(APP_DEP_FILES)