DOS gcc makefile fix
This commit is contained in:
+27
-21
@@ -67,6 +67,10 @@ LIBRARIES = $(LIBS) $(TERMLIB)
|
|||||||
# If you have yacc/lex or a work-alike set YACC_LEX to Y
|
# If you have yacc/lex or a work-alike set YACC_LEX to Y
|
||||||
#
|
#
|
||||||
YACC_LEX = Y
|
YACC_LEX = Y
|
||||||
|
ifeq ($(YACC_LEX),Y)
|
||||||
|
DO_YACC = YACC_ACT
|
||||||
|
DO_LEX = LEX_ACT
|
||||||
|
endif
|
||||||
|
|
||||||
# If YACC_LEX is Y above, set the following to values appropriate for
|
# If YACC_LEX is Y above, set the following to values appropriate for
|
||||||
# your tools.
|
# your tools.
|
||||||
@@ -609,15 +613,15 @@ $(O)lev_main.o: $(HACK_H) $(INCL)/sp_lev.h $(INCL)/date.h $(U)lev_main.c
|
|||||||
|
|
||||||
ifeq "$(DO_YACC)" "YACC_ACT"
|
ifeq "$(DO_YACC)" "YACC_ACT"
|
||||||
|
|
||||||
$(INCL)/lev_comp.h: lev_yacc.c
|
$(INCL)/lev_comp.h: $(U)lev_yacc.c
|
||||||
|
|
||||||
$(U)lev_yacc.c $(INCL)/lev_comp.h : $(U)lev_comp.y
|
$(U)lev_yacc.c $(INCL)/lev_comp.h : $(U)lev_comp.y
|
||||||
@$(subst /,\,chdir $(U)) & \
|
@$(subst /,\,chdir $(UTIL))
|
||||||
@$(subst /,\,$(YACC) -d lev_comp.y) & \
|
@$(subst /,\,$(YACC) -d lev_comp.y)
|
||||||
@$(subst /,\,copy $(YTABC) lev_yacc.c) & \
|
@$(subst /,\,copy $(YTABC) lev_yacc.c)
|
||||||
@$(subst /,\,copy $(YTABH) $(INCL)/lev_comp.h) & \
|
@$(subst /,\,copy $(YTABH) $(INCL)/lev_comp.h)
|
||||||
@$(subst /,\,@del $(YTABC)) & \
|
@$(subst /,\,@del $(YTABC))
|
||||||
@$(subst /,\,@del $(YTABH)) & \
|
@$(subst /,\,@del $(YTABH))
|
||||||
@$(subst /,\,chdir $(SRC))
|
@$(subst /,\,chdir $(SRC))
|
||||||
else
|
else
|
||||||
|
|
||||||
@@ -639,10 +643,11 @@ endif
|
|||||||
|
|
||||||
$(U)lev_$(LEX).c: $(U)lev_comp.l
|
$(U)lev_$(LEX).c: $(U)lev_comp.l
|
||||||
ifeq "$(DO_LEX)" "LEX_ACT"
|
ifeq "$(DO_LEX)" "LEX_ACT"
|
||||||
@$(subst /,\,chdir $(U)) & \
|
@$(subst /,\,chdir $(UTIL))
|
||||||
@$(subst /,\,$(LEX) $(FLEXSKEL) lev_comp.l) & \
|
@$(subst /,\,$(LEX) $(FLEXSKEL) lev_comp.l)
|
||||||
@$(subst /,\,copy $(LEXYYC) $@) & \
|
@$(subst /,\,if exist $@ del $@)
|
||||||
@$(subst /,\,@del $(LEXYYC)) & \
|
@$(subst /,\,copy $(LEXYYC) $@)
|
||||||
|
@$(subst /,\,del $(LEXYYC))
|
||||||
@$(subst /,\,chdir $(SRC))
|
@$(subst /,\,chdir $(SRC))
|
||||||
else
|
else
|
||||||
@echo ---
|
@echo ---
|
||||||
@@ -661,12 +666,12 @@ $(U)dgn_comp.exe: $(DGNCOMPOBJS)
|
|||||||
|
|
||||||
ifeq "$(DO_YACC)" "YACC_ACT"
|
ifeq "$(DO_YACC)" "YACC_ACT"
|
||||||
$(U)dgn_yacc.c $(INCL)/dgn_comp.h : $(U)dgn_comp.y
|
$(U)dgn_yacc.c $(INCL)/dgn_comp.h : $(U)dgn_comp.y
|
||||||
@$(subst /,\,chdir $(U)) & \
|
@$(subst /,\,chdir $(UTIL))
|
||||||
@$(subst /,\,$(YACC) -d dgn_comp.y) & \
|
@$(subst /,\,$(YACC) -d dgn_comp.y)
|
||||||
@$(subst /,\,copy $(YTABC) dgn_yacc.c) & \
|
@$(subst /,\,copy $(YTABC) dgn_yacc.c)
|
||||||
@$(subst /,\,copy $(YTABH) $(INCL)/dgn_comp.h) & \
|
@$(subst /,\,copy $(YTABH) $(INCL)/dgn_comp.h)
|
||||||
@$(subst /,\,@del $(YTABC)) & \
|
@$(subst /,\,@del $(YTABC))
|
||||||
@$(subst /,\,@del $(YTABH)) & \
|
@$(subst /,\,@del $(YTABH))
|
||||||
@$(subst /,\,chdir $(SRC))
|
@$(subst /,\,chdir $(SRC))
|
||||||
else
|
else
|
||||||
$(U)dgn_yacc.c: $(SSHR)/dgn_yacc.c
|
$(U)dgn_yacc.c: $(SSHR)/dgn_yacc.c
|
||||||
@@ -688,10 +693,11 @@ endif
|
|||||||
ifeq "$(DO_LEX)" "LEX_ACT"
|
ifeq "$(DO_LEX)" "LEX_ACT"
|
||||||
|
|
||||||
$(U)dgn_$(LEX).c: $(U)dgn_comp.l $(INCL)/dgn_comp.h
|
$(U)dgn_$(LEX).c: $(U)dgn_comp.l $(INCL)/dgn_comp.h
|
||||||
@$(subst /,\,chdir $(U)) & \
|
@$(subst /,\,chdir $(UTIL))
|
||||||
@$(subst /,\,$(LEX) $(FLEXSKEL) dgn_comp.l) & \
|
@$(subst /,\,$(LEX) $(FLEXSKEL) dgn_comp.l)
|
||||||
@$(subst /,\,copy $(LEXYYC) $@) & \
|
@$(subst /,\,if exist $@ del $@)
|
||||||
@$(subst /,\,@del $(LEXYYC)) & \
|
@$(subst /,\,copy $(LEXYYC) $@)
|
||||||
|
@$(subst /,\,del $(LEXYYC))
|
||||||
@$(subst /,\,chdir $(SRC))
|
@$(subst /,\,chdir $(SRC))
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user