makefile.shared (Firebird-3.0.2.32703-0.tar.bz2) | : | makefile.shared (Firebird-3.0.4.33054-0.tar.bz2) | ||
---|---|---|---|---|
#Makefile for GCC | #Makefile for GCC | |||
# | # | |||
#Tom St Denis | #Tom St Denis | |||
VERSION=0:41 | VERSION=0:41 | |||
CC = libtool --mode=compile --tag=CC gcc | ifndef LIBTOOL | |||
LIBTOOL=libtool | ||||
endif | ||||
CC = $(LIBTOOL) --mode=compile --tag=CC gcc | ||||
CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare | CFLAGS += -I./ -Wall -W -Wshadow -Wsign-compare | |||
ifndef IGNORE_SPEED | ifndef IGNORE_SPEED | |||
#for speed | #for speed | |||
CFLAGS += -O3 -funroll-loops | CFLAGS += -O3 -funroll-loops | |||
#for size | #for size | |||
#CFLAGS += -Os | #CFLAGS += -Os | |||
skipping to change at line 86 | skipping to change at line 90 | |||
bn_mp_radix_smap.o bn_mp_read_radix.o bn_mp_toradix.o bn_mp_radix_size.o \ | bn_mp_radix_smap.o bn_mp_read_radix.o bn_mp_toradix.o bn_mp_radix_size.o \ | |||
bn_mp_fread.o bn_mp_fwrite.o bn_mp_cnt_lsb.o bn_error.o \ | bn_mp_fread.o bn_mp_fwrite.o bn_mp_cnt_lsb.o bn_error.o \ | |||
bn_mp_init_multi.o bn_mp_clear_multi.o bn_mp_exteuclid.o bn_mp_toradix_n.o \ | bn_mp_init_multi.o bn_mp_clear_multi.o bn_mp_exteuclid.o bn_mp_toradix_n.o \ | |||
bn_mp_prime_random_ex.o bn_mp_get_int.o bn_mp_sqrt.o bn_mp_is_square.o bn_mp_ini t_set.o \ | bn_mp_prime_random_ex.o bn_mp_get_int.o bn_mp_sqrt.o bn_mp_is_square.o bn_mp_ini t_set.o \ | |||
bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o \ | bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o \ | |||
bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o | bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o | |||
objs: $(OBJECTS) | objs: $(OBJECTS) | |||
$(LIBNAME): $(OBJECTS) | $(LIBNAME): $(OBJECTS) | |||
libtool --mode=link --tag=CC gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -ve rsion-info $(VERSION) | $(LIBTOOL) --mode=link --tag=CC gcc *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) | |||
install: $(LIBNAME) | install: $(LIBNAME) | |||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) | install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) | |||
libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNA ME) | $(LIBTOOL) --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LI BNAME) | |||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) | install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) | |||
install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) | install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH) | |||
test: $(LIBNAME) demo/demo.o | test: $(LIBNAME) demo/demo.o | |||
gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o | gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o | |||
libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S) | $(LIBTOOL) --mode=link gcc -o test demo/demo.o $(LIBNAME_S) | |||
mtest: test | mtest: test | |||
cd mtest ; gcc $(CFLAGS) mtest.c -o mtest | cd mtest ; gcc $(CFLAGS) mtest.c -o mtest | |||
timing: $(LIBNAME) | timing: $(LIBNAME) | |||
gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest | gcc $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME_S) -o ltmtest | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 8 lines changed or added |