1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
#
# Time-stamp: <99/05/12 21:32:21 yusuf>
#
# $Id: Makefile.common,v 1.44.4.1 1999/05/12 13:34:42 yusuf Exp $
#If you have -DTRIPLE_BUFFER defined, then taper will triple buffer
#all data to the tape drive. This option requires that your kernel
#supports SYSV_IPC calls. If your kernel doesn't, you can't use
#triple buffering unless you reconfigure & recompile your kernel
#
#Triple buffering can improve backup performance considerably especially
#with slower tape drives.
#
#If you have a very fast tape drive, then Triple buffering can actually
#slow down your performance so if you find your backup performance
#is poor, try turning triple buffering off.
#
DEVELOPMENT = FALSE
GLIBC=TRUE
DEFINES0 = -DLINUX -D_GNU_SOURCE -Dlint # gcc acts like a lint with -Wall
DEFINES1 = -DTRIPLE_BUFFER # see above
#DEFINES2 = -DTAPER_BIG_ENDIAN # uncomment if using big endian machine
#DEFINES3 = -DFIFO_PROBLEMS # uncomment if using libc5 and getting FIFO errors
ifeq ($(DEVELOPMENT), TRUE)
DEBUG = -g
endif
GCC = gcc
CC = gcc
#add compiler flags here
CFLAGS= -O6 -fno-strength-reduce -Wall -pipe $(DEBUG)
#put any special include paths here - make sure you prefix
#it with a -I (eg. -I/usr/special/include -I/usr/local/special/include)
INCLUDE = -I/usr/include/ncurses
#put any special libraries here - make sure you prefix it with
#a -l or -L (eg. -lspecial -Llibnothing)
LIBPATH =
BINDIR=/sbin
ALTBIN=/bin
MANDIR=/usr/man/cat8
COMPRESS_DIR=compress
COMPRESS_LIB=comp_lib
DOCS_DIR=docs
COMMON_LIB=common_lib
LINKLIB =
CURSES = ncurses
FORM = form
#------------- Shouldn't need to change anything below this ------------------
BSD_SIGNALS=FALSE
DEFINES4=
DEFINES5=
ifeq ($(GLIBC), TRUE) #using glibc
DEFINES4 = -DGLIBC_2
BSD_SIGNALS = TRUE
endif
ifeq ($(BSD_SIGNALS), TRUE)
DEFINES5 = -DBSD_SIGNALS
endif
DEFINES = $(DEFINES0) $(DEFINES1) $(DEFINES2) $(DEFINES3) $(DEFINES4) $(DEFINES5)
ifeq ($(DEVELOPMENT), TRUE)
EFENCE_SRCS = ../EF/print.c ../EF/page.c ../EF/efence.c
endif
COMPRESS_SRCS = zip.c unzip.c bits.c trees.c deflate.c inflate.c \
util.c lzrw3.c
COMPRESS_OBJS = $(COMPRESS_SRCS:.c=.o)
COMMON_SRCS = memory.c common_bg.c select_box.c bg_vars.c mtree.c library.c fifo.c
COMMON_OBJS = $(COMMON_SRCS:.c=.o)
TAPER_SRCS = vars.c common.c endianize.c tapeio.c rtapelib.c \
sel_backup.c backup.c sel_restore.c restore.c \
utils.c mkinfo.c taper.c $(EFENCE_SRCS)
TAPER_OBJS = $(TAPER_SRCS:.c=.o)
BG_BACKUP_SRCS = bg_backup.c $(EFENCE_SRCS)
BG_BACKUP_OBJS = $(BG_BACKUP_SRCS:.c=.o)
BG_RESTORE_SRCS = bg_restore.c $(EFENCE_SRCS)
BG_RESTORE_OBJS = $(BG_RESTORE_SRCS:.c=.o)
|