Changeset 15621
- Timestamp:
- Nov 15, 2007, 9:29:47 AM (18 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 2 edited
-
libautocode/Makefile (modified) (2 diffs)
-
libdvo/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/Makefile
r15601 r15621 46 46 $(DESTINC)/autocode.h : $(INC)/autocode.h 47 47 48 $(AOBJS): $( INC)/autocode.h48 $(AOBJS): $(DEF)/autocode.c $(DESTINC)/autocode.h 49 49 50 $(INC)/autocode.h: $(AINCS) $(DEF)/ common.h50 $(INC)/autocode.h: $(AINCS) $(DEF)/autocode.h $(DEF)/common.h 51 51 cat $(DEF)/common.h > $(INC)/autocode.h 52 52 cat $(AINCS) >> $(INC)/autocode.h … … 54 54 @echo done with autocode.h 55 55 56 $(INC)/%.h: $(DEF)/%.d $(DEF)/autocode.h $(DEF)/common.h 57 @if [ ! -d $(INC) ]; then mkdir -p $(INC); fi 58 ./generate $< $(DEF)/autocode.h $@ 59 60 $(SRC)/%.c: $(DEF)/%.d $(DEF)/autocode.c $(INC)/%.h 61 @if [ ! -d $(SRC) ]; then mkdir -p $(SRC); fi 62 ./generate $< $(DEF)/autocode.c $@ 63 56 64 $(TEX)/%.tex: $(DEF)/%.d $(DEF)/autocode.tex 57 65 @if [ ! -d $(TEX) ]; then mkdir -p $(TEX); fi 58 66 ./generate $< $(DEF)/autocode.tex $@ 59 60 $(INC)/%.h: $(DEF)/%.d $(DEF)/autocode.h61 @if [ ! -d $(INC) ]; then mkdir -p $(INC); fi62 ./generate $< $(DEF)/autocode.h $@63 64 $(SRC)/%.c: $(DEF)/%.d $(DEF)/autocode.c65 @if [ ! -d $(SRC) ]; then mkdir -p $(SRC); fi66 ./generate $< $(DEF)/autocode.c $@67 67 68 68 clean: cleandef -
trunk/Ohana/src/libdvo/Makefile
r15540 r15621 70 70 71 71 $(OBJS): $(INCS) 72 $(AOBJS): $(ADEF)/autocode.c $(ADEF)/autocode.h $(AINC)/autocode.h73 74 $(AINC)/autocode.h: $(AINCS)75 76 $(DESTINC)/autocode.h: $(AINC)/autocode.h77 @if [ ! -d $(DESTINC) ]; then mkdir -p $(DESTINC); fi78 rm -f $@79 cp $< $@80 81 bar: $(DESTINC)/autocode.h82 83 foo:84 @echo $(DESTINC)/autocode.h85 @echo $(AINC)/autocode.h86 @echo $(AINCS)87 72 88 73 $(LIB)/libdvo.$(ARCH).a: $(AOBJS) $(OBJS) … … 92 77 $(DESTLIB)/libdvo.$(DLLTYPE): $(LIB)/libdvo.$(ARCH).$(DLLTYPE) 93 78 94 $(ASRC)/%.c : $(ADEF)/%.d 79 # dependency rules for the autocode files 80 81 $(AOBJS): $(ADEF)/autocode.c $(DESTINC)/autocode.h 82 83 $(DESTINC)/autocode.h: $(AINC)/autocode.h 84 @if [ ! -d $(DESTINC) ]; then mkdir -p $(DESTINC); fi 85 rm -f $@ 86 cp $< $@ 87 88 $(AINC)/autocode.h: $(AINCS) $(ADEF)/autocode.h $(ADEF)/common.h 95 89 echo "make $@ from $^" 96 90 cd $(AUTO) && make $@ 97 91 98 $(ASRC)/%.$(ARCH).o : $(ASRC)/%.c 92 # generic rule for AINCS 93 $(AINC)/%.h : $(ADEF)/%.d $(ADEF)/autocode.h $(ADEF)/common.h 99 94 echo "make $@ from $^" 100 95 cd $(AUTO) && make $@ 101 96 102 $(AINC)/%.h : $(ADEF)/%.d 97 # generic rule for ASRC 98 $(ASRC)/%.c : $(ADEF)/%.d $(ADEF)/autocode.c $(AINC)/%.h 103 99 echo "make $@ from $^" 104 100 cd $(AUTO) && make $@ 105 101 106 $(AINC)/autocode.h: $(AINCS) $(ADEF)/common.h 102 # generic rule for AOBJS 103 $(ASRC)/%.$(ARCH).o : $(ASRC)/%.c 107 104 echo "make $@ from $^" 108 105 cd $(AUTO) && make $@
Note:
See TracChangeset
for help on using the changeset viewer.
