X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2FMakefile;h=5ef9df06f9cae9ade23d879e27f0f1f237966483;hb=a4c85aab2676bbb3138f042ed5bc27a6df8b1903;hp=62cba7ccb4404db6d6c189149f38f4906e890e34;hpb=4433514e4b01cb3c566d24d671e689f02682f59f;p=libfirm diff --git a/testprograms/Makefile b/testprograms/Makefile index 62cba7ccb..5ef9df06f 100644 --- a/testprograms/Makefile +++ b/testprograms/Makefile @@ -1,17 +1,18 @@ - DIRS = adt common debug ident ir tr tv -INCDIRS = $(DIRS:%=-I../ir/%) -I../ir/include +INCDIRS = -I../include LIBDIRS=-L.. -L/usr/public/lib/gmp/ -LIBS=-lfirm -lgmp -lm -%.o: %.c +LIBS=-lfirm -lgmp + +%.o: %.c ../libfirm.a gcc -c $(INCDIRS) -g $< all: empty const_eval_example \ if_example if_else_example if_while_example cond_example \ call_str_example memory_example array-stack_example \ - array-heap_example oo_program_example irr_cf_example \ + array-heap_example oo_program_example inheritance_example \ + irr_cf_example \ irr_loop_example dead_block_example global_var_example \ three_cfpred_example @@ -22,7 +23,8 @@ clean: if_while_example cond_example \ call_str_example memory_example \ array-stack_example array-heap_example \ - oo_program_example irr_cf_example \ + oo_program_example inheritance_example \ + irr_cf_example \ irr_loop_example dead_block_example \ global_var_example three_cfpred_example \ *.o *.vcg core @@ -41,6 +43,7 @@ run: array-stack_example; \ array-heap_example; \ oo_program_example; \ + inheritance_example; \ irr_cf_example; \ irr_loop_example; \ dead_block_example; \ @@ -80,6 +83,9 @@ array-heap_example: array-heap_example.o oo_program_example: oo_program_example.o gcc -o oo_program_example oo_program_example.o $(LIBDIRS) $(LIBS) +inheritance_example: inheritance_example.o + gcc -o inheritance_example inheritance_example.o $(LIBDIRS) $(LIBS) + irr_cf_example: irr_cf_example.o gcc -o irr_cf_example irr_cf_example.o $(LIBDIRS) $(LIBS)