# Make file for UTSA libraries and tests. OPT= #OPT=-Wf-Ypairwise -Wf-Ydeadstore BIN= MISC=/usr/marks/StackSim/Code/misc I=I../utsa all:: lib_utsa.s clean: rm *.s UTSA_LIB=machine.s utsa_io.s printf.s lib.s %.s : %.c $(BIN)lcc-utsa -$I $(OPT) $< lib_utsa.s: $(UTSA_LIB) $(BIN)archiver -o lib_utsa.s $(UTSA_LIB) assembler/lib.s hello: hello.s lib_utsa.s $(BIN)linker -o $(MISC)/hello lib_utsa.s hello.s hello.s: ../tst/hello.c $(BIN)lcc-utsa -$I $(OPT) ../tst/hello.c 8q.s: ../tst/8q.c $(BIN)lcc-utsa -$I $(OPT) ../tst/8q.c cq.s: ../tst/cq.c $(BIN)lcc-utsa -$I $(OPT) ../tst/cq.c char_test: char_test.s lib_utsa.s $(BIN)linker -o $(MISC)/char_test lib_utsa.s char_test.s test1: test1.s lib_utsa.s $(BIN)linker -o $(MISC)/test1 lib_utsa.s test1.s test2: test2.s lib_utsa.s $(BIN)linker -o $(MISC)/test2 lib_utsa.s test2.s test3: test3.s lib_utsa.s $(BIN)linker -o $(MISC)/test3 lib_utsa.s test3.s test4: test4.s lib_utsa.s $(BIN)linker -o $(MISC)/test4 lib_utsa.s test4.s cq: cq.s lib_utsa.s $(BIN)linker -o $(MISC)/cq lib_utsa.s cq.s 8q: 8q.s lib_utsa.s $(BIN)linker -o $(MISC)/8q lib_utsa.s 8q.s printf: test_printf.s lib_utsa.s $(BIN)linker -o $(MISC)/test_printf lib_utsa.s test_printf.s