################################################################################ # Automatically-generated file. Do not edit! ################################################################################ -include ../makefile.init RM := rm -rf # All of the sources participating in the build are defined here -include sources.mk -include subdir.mk -include objects.mk ifneq ($(MAKECMDGOALS),clean) ifneq ($(strip $(C_DEPS)),) -include $(C_DEPS) endif endif -include ../makefile.defs # Add inputs and outputs from these tool invocations to the build variables # All Target all: pre-build main-build # Main-build Target main-build: CompilerDesign # Tool invocations CompilerDesign: $(OBJS) $(USER_OBJS) @echo 'Building target: $@' @echo 'Invoking: MacOS X C Linker' gcc -g -lm -o "CompilerDesign" $(OBJS) $(USER_OBJS) $(LIBS) @echo 'Finished building target: $@' @echo ' ' # Other Targets clean: -$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) CompilerDesign -@echo ' ' pre-build: -@echo 'build the lexer and parser' -yacc --defines=../y.tab.h -o ../y.tab.c ../hw3.y;flex --yylineno -o ../lex.yy.c ../hw2.l -@echo ' ' .PHONY: all clean dependents .SECONDARY: main-build pre-build -include ../makefile.targets