~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
cvs/emstar/make/make.easybuild


  1 #
  2 # "Real" makefile used to bootstrap the easybuild system itself into existence
  3 #
  4 # $Id: make.easybuild,v 1.13 2003-11-04 05:39:08 jelson Exp $
  5 #
  6 
  7 local-default:
  8         ERR = $(error Run make from the top-level directory, not here)
  9 
 10 OBJ := $(NATIVE_OBJDIR)/$(BUILDDIR)/make/easybuild
 11 
 12 MY_CFLAGS := $(CFLAGS) -I$(OBJ) -Imake/easybuild
 13 
 14 EASYBUILD_OBJS := \
 15         $(OBJ)/lexer.o \
 16         $(OBJ)/parser.tab.o \
 17         $(OBJ)/makefile.o \
 18         $(OBJ)/easybuild_util.o \
 19         $(OBJ)/easybuild_main.o
 20 
 21 $(NATIVE_OBJDIR)/make/easybuild: $(EASYBUILD_OBJS)
 22         @if [ ! -d $(NATIVE_OBJDIR)/make ]; then mkdir -p $(NATIVE_OBJDIR)/make; fi
 23         $(NATIVE_CC) -o $@ $(EASYBUILD_OBJS)
 24 
 25 # The target dir where the final binary goes
 26 $(NATIVE_OBJDIR)/make:
 27         mkdir -p $(NATIVE_OBJDIR)/make
 28 
 29 # The 'build dir' where all the object files go
 30 $(OBJ):
 31         mkdir -p $(OBJ)
 32 
 33 $(OBJ)/parser.tab.o: $(OBJ)/parser.tab.c make/easybuild/easybuild_i.h
 34         $(NATIVE_CC) $(MY_CFLAGS) -o $@ -c $<
 35 
 36 $(OBJ)/lexer.o: $(OBJ)/lexer.c $(OBJ)/parser.tab.h make/easybuild/easybuild_i.h
 37         $(NATIVE_CC) $(MY_CFLAGS) -o $@ -c $<
 38 
 39 $(OBJ)/easybuild_main.o: make/easybuild/easybuild_main.c make/easybuild/easybuild_i.h
 40         $(NATIVE_CC) $(MY_CFLAGS) -o $@ -c $<
 41 
 42 $(OBJ)/easybuild_util.o: make/easybuild/easybuild_util.c make/easybuild/easybuild_i.h
 43         $(NATIVE_CC) $(MY_CFLAGS) -o $@ -c $<
 44 
 45 $(OBJ)/makefile.o: make/easybuild/makefile.c make/easybuild/easybuild_i.h
 46         $(NATIVE_CC) $(MY_CFLAGS) -o $@ -c $<
 47 
 48 # generating source with lex and yacc
 49 $(OBJ)/parser.tab.h $(OBJ)/parser.tab.c: make/easybuild/easybuild.y
 50         @if [ ! -d $(OBJ) ]; then mkdir -p $(OBJ); fi
 51         bison -d make/easybuild/easybuild.y -b $(OBJ)/parser
 52 
 53 $(OBJ)/lexer.c: make/easybuild/easybuild.l
 54         @if [ ! -d $(OBJ) ]; then mkdir -p $(OBJ); fi
 55         flex -o$(OBJ)/lexer.c make/easybuild/easybuild.l
 56 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.