SRC_DIR = $(SRC_HOME)/util/ceg/as_parser
CEGLIB = $(TARGET_HOME)/lib.bin/ceg
-IFILES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/modules/h -I.
+IFILES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/modules/h -I. -I$(SRC_DIR)
CFLAGS = $(COPTIONS) -DFLEX $(IFILES)
LDFLAGS = $(LDOPTIONS)
clean:
rm -f as_parser *.$(SUF) lex.yy.c Lpars.[ch] pars.c dummy eval/*.$(SUF) eval/eval
-lex.yy.c : table.l
- flex -s table.l
+lex.yy.c : $(SRC_DIR)/table.l
+ flex -s $(SRC_DIR)/table.l
dummy : $(GFILES)
LLgen $(LLOPT) $(GFILES)
-mkdir $(CEGLIB)
-mkdir $(UTIL)
for i in $(UtilList) ; do cp $$i $(UTIL)/$$i ; done
- { echo TARGET_HOME=$(TARGET_HOME); cat $(SRC_DIR)/install_ceg } > $(TARGET_HOME)/bin/install_ceg
+ { echo TARGET_HOME=$(TARGET_HOME); cat $(SRC_DIR)/install_ceg ; } > $(TARGET_HOME)/bin/install_ceg
chmod +x $(TARGET_HOME)/bin/install_ceg
- { echo TARGET_HOME=$(TARGET_HOME); echo SUF=$(SUF); echo LIBSUF=$(LIBSUF); cat $(SRC_DIR)/update_ceg } > $(TARGET_HOME)/bin/update_ceg
+ { echo TARGET_HOME=$(TARGET_HOME); echo SUF=$(SUF); echo LIBSUF=$(LIBSUF); cat $(SRC_DIR)/update_ceg ; } > $(TARGET_HOME)/bin/update_ceg
chmod +x $(TARGET_HOME)/bin/update_ceg
cmp:
install:led
rm -f $(LIBDIR)/em_led $(TARGET_HOME)/man/led.6 $(TARGET_HOME)/man/ack.out.5
cp led $(LIBDIR)/em_led
- cp led.6 $(TARGET_HOME)/man/led.6
- cp ack.out.5 $(TARGET_HOME)/man/ack.out.5
+ cp $(SRC_DIR)/led.6 $(TARGET_HOME)/man/led.6
+ cp $(SRC_DIR)/ack.out.5 $(TARGET_HOME)/man/ack.out.5
cmp: led
-cmp led $(LIBDIR)/em_led
- -cmp led.6 $(TARGET_HOME)/man/led.6
- -cmp ack.out.5 $(TARGET_HOME)/man/ack.out.5
+ -cmp $(SRC_DIR)/led.6 $(TARGET_HOME)/man/led.6
+ -cmp $(SRC_DIR)/ack.out.5 $(TARGET_HOME)/man/ack.out.5
lint:
lint $(LINTFLAGS) $(CFILES) $(LINTLIBS)