2001-03-10 19:46:48 +00:00
|
|
|
--- Makefile.orig Tue Feb 27 17:50:21 2001
|
|
|
|
+++ Makefile Sun Mar 11 04:43:49 2001
|
|
|
|
@@ -1,51 +1,21 @@
|
|
|
|
+PROG= asp2php
|
|
|
|
+NOMAN= true
|
|
|
|
+CC?= cc
|
|
|
|
+CFLAGS?=-O -pipe
|
|
|
|
+CFLAGS+=-Wall
|
|
|
|
+SRCS= conditionals.c database.c evalelement.c expression.c general.c \
|
|
|
|
+ gettoken.c html.c loops.c mysql.c odbc.c oracle.c postgres.c \
|
|
|
|
+ response.c request.c session.c sybase.c asp2php.c
|
|
|
|
|
2000-12-21 09:07:51 +00:00
|
|
|
-CC=gcc
|
2000-12-21 22:55:58 +00:00
|
|
|
-
|
|
|
|
-default:
|
|
|
|
- $(CC) -c conditionals.c -Wall
|
|
|
|
- $(CC) -c database.c -Wall
|
|
|
|
- $(CC) -c evalelement.c -Wall
|
2001-03-10 19:46:48 +00:00
|
|
|
- $(CC) -c expression.c -Wall
|
|
|
|
- $(CC) -c general.c -Wall
|
2000-12-21 22:55:58 +00:00
|
|
|
- $(CC) -c gettoken.c -Wall
|
|
|
|
- $(CC) -c html.c -Wall
|
|
|
|
- $(CC) -c loops.c -Wall
|
2001-03-10 19:46:48 +00:00
|
|
|
- $(CC) -c mysql.c -Wall
|
|
|
|
- $(CC) -c odbc.c -Wall
|
|
|
|
- $(CC) -c oracle.c -Wall
|
|
|
|
- $(CC) -c postgres.c -Wall
|
|
|
|
- $(CC) -c response.c -Wall
|
|
|
|
- $(CC) -c request.c -Wall
|
2000-12-21 22:55:58 +00:00
|
|
|
- $(CC) -c session.c -Wall
|
2001-03-10 19:46:48 +00:00
|
|
|
- $(CC) -c sybase.c -Wall
|
|
|
|
- $(CC) -o asp2php asp2php.c conditionals.o database.o \
|
|
|
|
- evalelement.o expression.o general.o gettoken.o \
|
|
|
|
- html.o loops.o mysql.o \
|
|
|
|
- odbc.o oracle.o postgres.o response.o \
|
|
|
|
- request.o session.o sybase.o -Wall
|
2000-12-21 22:55:58 +00:00
|
|
|
- @echo ""
|
|
|
|
-# @echo "Done! You may type: make gtkasp2php for the optional GUI now"
|
|
|
|
-
|
|
|
|
-clean:
|
|
|
|
- @if [ -e database.o ]; then rm *.o; fi;
|
|
|
|
- @if [ -e asp2php ]; then rm asp2php; fi;
|
|
|
|
- @if [ -e gtkasp2php ]; then rm gtkasp2php; fi;
|
|
|
|
- @if [ -e unipiss ]; then rm unipiss; fi;
|
|
|
|
- @echo "Clean!"
|
|
|
|
+CLEANFILES+= gtkasp2php.o gtkasp2php
|
2000-06-29 20:05:45 +00:00
|
|
|
|
2000-12-21 22:55:58 +00:00
|
|
|
gtkasp2php: gtkasp2php.c
|
2001-03-10 19:46:48 +00:00
|
|
|
- $(CC) -o gtkasp2php gtkasp2php.c `gtk-config --cflags` `gtk-config --libs`
|
|
|
|
-
|
2000-12-21 22:55:58 +00:00
|
|
|
-unipiss:
|
|
|
|
- $(CC) -o unipiss unipiss.c html.o general.o -Wall
|
2001-03-10 19:46:48 +00:00
|
|
|
+ $(CC) -o gtkasp2php gtkasp2php.c `$(GTK_CONFIG) --cflags` `$(GTK_CONFIG) --libs`
|
|
|
|
|
2000-06-29 20:05:45 +00:00
|
|
|
install:
|
2000-12-21 09:07:51 +00:00
|
|
|
- @if [ -e asp2php ]; then cp asp2php /usr/local/bin; fi;
|
|
|
|
- @if [ -e unipiss ]; then cp unipiss /usr/local/bin; fi;
|
|
|
|
- @if [ -e gtkasp2php ]; then cp gtkasp2php /usr/local/bin; fi;
|
|
|
|
- @echo "Compiled programs have been installed in /usr/local/bin"
|
2001-03-10 19:46:48 +00:00
|
|
|
- @echo ""
|
2000-12-21 22:55:58 +00:00
|
|
|
-
|
2001-03-10 19:46:48 +00:00
|
|
|
-all: default
|
|
|
|
+ $(BSD_INSTALL_PROGRAM) asp2php $(PREFIX)/bin
|
|
|
|
|
2000-12-21 22:55:58 +00:00
|
|
|
+install-gtk:
|
2001-03-10 19:46:48 +00:00
|
|
|
+ $(BSD_INSTALL_PROGRAM) gtkasp2php $(PREFIX)/bin
|
2000-12-21 22:55:58 +00:00
|
|
|
|
|
|
|
+.include <bsd.prog.mk>
|