$OpenBSD: patch-Makefile_in,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $ --- Makefile.in.orig Fri Sep 9 17:35:20 1994 +++ Makefile.in Sat Oct 27 00:05:07 2007 @@ -10,8 +10,7 @@ # try uncommenting the 'gcc' line and commenting the 'cc' one. # Tintin++ doesn't *need* an ANSI compiler anymore, but gcc # is still better than cc on many platforms... -CC = @CC@ -O -CFLAGS = @DEFS@ +CFLAGS += @DEFS@ LIBS = @LIBS@ PIPE = @PIPE@ # If you plan on doing debugging (with gdb), it is very helpful to turn all @@ -22,10 +21,10 @@ PIPE = @PIPE@ # BINDIR is the directory you wish tt++ to be placed if you wish to use # make install. -BINDIR = .. +BINDIR = /usr/local/bin # DEFAULT_FILE_DIR is the path to tintin files. -DEFAULT_FILE_DIR = @HOME@ +DEFAULT_FILE_DIR = /usr/local/lib/tintin ######################################### # You shouldn't need to change anything # @@ -41,14 +40,15 @@ CFILES = main.c parse.c action.c alias.c substitute.c variables.c highlight.c antisub.c ivars.c help.c text.c glob.c OFILES = $(CFILES:.c=.o) -all: tintin++ install +all: tintin++ tintin++: $(OFILES) tintin.h @echo "Linking..." $(CC) $(CFLAGS) $(FFLAGS) $(LFLAGS) -o tt++ $(OFILES) $(LIBS) -install: all - @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) $(COMPRESSED_HELP) +install: + @mkdir -p $(DEFAULT_FILE_DIR) + @./install.sh $(BINDIR) $(DEFAULT_FILE_DIR) Ok # Autocompile all .c files into .o files using this rule: .c.o: