63 lines
1.1 KiB
Makefile
63 lines
1.1 KiB
Makefile
.SUFFIXES: .cob .cbl .o
|
|
|
|
.o:
|
|
gcc -g -o $@ $< -L/usr/local/lib \
|
|
-lhtcobol -ldb -lncurses -ldl -lm
|
|
# gcc -g -o $@ $< -L/usr/local/lib -L../../lib \
|
|
# -lhtcobol -ldb -lncurses -ldl -lm
|
|
|
|
.cob.s:
|
|
htcobol -S -v -g -D -P $<
|
|
#htcobol -S -v $<
|
|
|
|
.cob.o:
|
|
#htcobol -c -v -g -D $<
|
|
htcobol -c -v -g -e $* -D $<
|
|
|
|
.cbl.o:
|
|
htcobol -c -v -g -D -F $<
|
|
|
|
.cbl.s:
|
|
htcobol -S -v -g -D -F $<
|
|
|
|
all: 1teste
|
|
|
|
chamado.o: chamado.cob
|
|
@rm -f chamado.s
|
|
htcobol -c -v -g -M none -D $<
|
|
# htcobol -S -v -g -M none -D $<
|
|
|
|
chamado2.o: chamado2.cob
|
|
@rm -f chamado2.s
|
|
htcobol -c -v -g -M none -D $<
|
|
# htcobol -S -v -g -M none -D $<
|
|
|
|
chamador: chamador.o chamado.o
|
|
gcc -g -o $@ chamador.o chamado.o -L/usr/local/lib \
|
|
-lhtcobol -ldb -lncurses -ldl -lm
|
|
|
|
external1sub.o: external1sub.cob
|
|
htcobol -c -v -g -M none -D $<
|
|
|
|
external1: external1.o external1sub.o
|
|
gcc -g -o $@ external1.o external1sub.o -L/usr/local/lib \
|
|
-lhtcobol -ldb -lncurses -ldl -lm
|
|
|
|
1teste: 1teste.cob
|
|
|
|
test01: test01.cob
|
|
|
|
3teste: 3teste.cob
|
|
|
|
2teste: 2teste.cob
|
|
|
|
0teste: 0teste.cob
|
|
|
|
conta: conta.cob
|
|
|
|
teste: teste.cob
|
|
|
|
clean:
|
|
rm -f *.o *.s *.lis *.i
|
|
|