openbsd-ports/databases/mysqlgui/patches/patch-Makefile
2002-08-10 20:10:24 +00:00

37 lines
2.4 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2002/08/10 20:10:24 wilfried Exp $
--- Makefile.orig Wed Apr 11 21:12:20 2001
+++ Makefile Fri Aug 9 16:48:29 2002
@@ -1,27 +1,14 @@
# --------------------- M a c r o s -------------------------------
-CC = gcc
-CXX = g++
-#CFLAGS = -O0 -g -pipe -fno-default-inline
-CFLAGS = -O3 -g -pipe -fforce-mem -fforce-addr
-#CFLAGS = -g -pipe
-#CFLAGS = -c -O2 -fstrength-reduce -finline-functions
-INCLUDE1 = -I. -I../mysql++-1.7/sqlplusint -I/usr/local/include/mysql
-LIBS = -L. -L/usr/X11R6/lib -lrcl -lrcledit -lsqlplus /usr/local/lib/mysql/libmysqlclient.a -lm -lflvw -lfltk -lXext -ljpeg
-#LIBS = -L. -L/usr/X11R6/lib -lrcl -lrcledit /home/Sinisa/guiclient/libsqlplus.a /usr/local/lib/mysql/libmysqlclient.a -lfltk /usr/X11R6/lib/libXext.a /usr/X11R6/lib/libX11.a /usr/lib/libstdc++.a /usr/lib/libm.a /usr/lib/libc.a xx.o
-OBJS = edfile.o about.o db_tree.o Fl_NSlider.o getvars.o qsort.o queries.o bebac.o main.o do_sql.o tables.o dodatni.o status.o process.o grant.o password.o get_table.o admin.o single.o zoom.o sin_jpeg.o jmemsrc.o options.o Fl_File_Dialog.o Fl_Dir.o Fl_Input_File.o Fl_Toggle_Tree.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o Fl_Toggle_Node_Base.o Animated_Icon.o Fl_Help.o Fl_Envelope.o Fl_Envelope_Scroll.o Selection.o gif.o
+CFLAGS += -I. -DFLTK_1_0_COMPAT -I${X11BASE}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/mysql++ -I${LOCALBASE}/include/mysql
+LIBS = -L${X11BASE}/lib -L${LOCALBASE}/lib -L${LOCALBASE}/lib/mysql -lfleditor -lsqlplus -lmysqlclient -lfltk -lfltk_images -lflvw -lintl -ljpeg -lXext -lX11 -lz -lm
+OBJS = about.o db_tree.o Fl_NSlider.o getvars.o qsort.o queries.o bebac.o main.o do_sql.o tables.o dodatni.o status.o process.o grant.o password.o get_table.o admin.o single.o zoom.o sin_jpeg.o jmemsrc.o options.o Fl_File_Dialog.o Fl_Dir.o Fl_Input_File.o Fl_Toggle_Tree.o Fl_Toggle_Node.o Fl_Toggle_Tree_Base.o Fl_Toggle_Node_Base.o Animated_Icon.o Fl_Help.o Fl_Envelope.o Fl_Envelope_Scroll.o Selection.o gif.o
# -------------------- R u l e s ---------------------------------
default: all
all: mysqlgui
clean :
- /bin/rm *.o mysqlgui
+ rm *.o mysqlgui
mysqlgui: $(OBJS)
-# $(CC) $(OBJS) $(LIBS) -o mysqlgui "-Wl,-rpath,../mysql++-1.7/sqlplusint/.libs"
- $(CXX) -o mysqlgui $(OBJS) $(LIBS) /usr/lib/libz.a
-
-%.o : %.cc
- $(CXX) $(CFLAGS) $(INCLUDE1) -c $<
-%.o : %.c
- gcc $(CFLAGS) $(INCLUDE1) -c $<
+ $(CXX) -o mysqlgui $(OBJS) $(LIBS)