CC = gcc AR = ar CFLAGS = -Wall -pedantic OBJECTS = config_lex.o config_yacc.o Hardware.o Hardware_Clock.o Hardware_Disk.o Hardware_Ethernet.o Hardware_Serialline.o Hardware_Tools.o MAIN = main.o HARDWARELIB = hardware.lib all: main ordo: lib ordo.o $(CC) -o ordo ordo.o ./$(HARDWARELIB) main: lib $(MAIN) $(CC) -o main $(MAIN) ./$(HARDWARELIB) lib: $(OBJECTS) $(AR) cr $(HARDWARELIB) $(OBJECTS) ranlib $(HARDWARELIB) config_lex.c: config.l config_yacc.h flex -oconfig_lex.c config.l config_yacc.h: config_yacc.c config_yacc.c: config.y bison -d -oconfig_yacc.c config.y clean: rm -f $(OBJECTS) ordo.o $(MAIN) $() config_lex.c config_yacc.h config_yacc.c main ordo $(HARDWARELIB)