home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-02-07 | 823 b | 38 lines |
- # $Id: makefile,v 1.10 1997/02/07 15:26:13 digulla Exp $
-
- TOP=../..
-
- USER_INCLUDES=-I/usr/include -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
-
- $(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) -- $^ > $@
-
- ifeq ($(TARGET),clean)
- NODEPS:=yes
- endif
- ifeq ($(TARGET),setup)
- NODEPS:=yes
- endif
-
- ifndef NODEPS
- include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
- endif
-