home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-02-07 | 877 b | 35 lines |
- # $Id: makefile,v 1.6 1997/02/07 15:26:44 digulla Exp $
-
- TOP=../..
- COMPILE_KERNEL = yes # Must have a value, no matter which one
-
- USER_INCLUDES=-I$(TOP)/rom/graphics -I$(TOP)/rom/intuition
-
- include $(TOP)/config/make.cfg
-
- FILES = graphics_driver intuition_driver
-
- all: setup \
- $(foreach f,$(FILES),$(OSGENDIR)/$(f).o)
-
- setup :
- @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
-
- clean:
- -$(RM) $(OSGENDIR) *.err
-
- graphics_driver.c intuition_driver.c:
- $(TOP)/scripts/makelinks ../linux/ . $@
-
- $(OSGENDIR)/%.o: %.c
- $(CC) $(SHARED_CFLAGS) $(CFLAGS) $(GUI_CCFLAGS) $< -c -o $@ 2>&1|tee $*.err
- @if test ! -s $*.err; then rm $*.err ; else true ; fi
-
- $(OSGENDIR)/%.d: %.c
- @if [ ! -d $(@D) ]; then $(MKDIR) $(@D) ; else true ; fi
- $(MKDEPEND) -f- -p$(@D)/ -- $(CFLAGS) -- $^ > $@
-
- ifneq ($(TARGET),clean)
- -include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
- endif
-