X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2FMakefile;h=7c94721aa3c7057f2fb745e8fb144469ba358262;hb=5cb134d940ff48d4bb471efd20c62edd58ae0980;hp=e30690673113ae4427522c001ee7bb953461f1ab;hpb=48e79b695e7d77c6434622d0d2ed0fa31b6f6461;p=libfirm diff --git a/testprograms/Makefile b/testprograms/Makefile index e30690673..7c94721aa 100644 --- a/testprograms/Makefile +++ b/testprograms/Makefile @@ -1,20 +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 - gcc -c $(INCDIRS) -g $< +LIBS=-lfirm -lgmp -orb: - ls +%.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 @@ -25,12 +23,15 @@ 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 realclean: clean + rm -f \#* *.flc + rm -rf auto/ run: ./empty; \ @@ -44,6 +45,7 @@ run: array-stack_example; \ array-heap_example; \ oo_program_example; \ + inheritance_example; \ irr_cf_example; \ irr_loop_example; \ dead_block_example; \ @@ -83,6 +85,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)