blob: b760c395b09c68759e5dfad1c1e5eb16eb3da06b (
plain) (
blame)
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
|
--- Makefile Mon Nov 27 07:43:28 2000
+++ Makefile.new Thu Dec 21 17:51:49 2000
@@ -1,46 +1,21 @@
-
-CC=gcc
-
-default:
- $(CC) -c general.c -Wall
- $(CC) -c conditionals.c -Wall
- $(CC) -c database.c -Wall
- $(CC) -c mysql.c -Wall
- $(CC) -c sybase.c -Wall
- $(CC) -c odbc.c -Wall
- $(CC) -c oracle.c -Wall
- $(CC) -c postgres.c -Wall
- $(CC) -c evalelement.c -Wall
- $(CC) -c gettoken.c -Wall
- $(CC) -c html.c -Wall
- $(CC) -c loops.c -Wall
- $(CC) -c session.c -Wall
- $(CC) -o asp2php asp2php.c general.o conditionals.o database.o \
- evalelement.o gettoken.o html.o loops.o mysql.o\
- sybase.o odbc.o oracle.o postgres.o session.o -Wall
- @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!"
+PROG= asp2php
+NOMAN= true
+CC?= cc
+CFLAGS?=-O -pipe
+CFLAGS+=-Wall
+SRCS= general.c conditionals.c database.c mysql.c sybase.c odbc.c oracle.c \
+ postgres.c evalelement.c gettoken.c html.c loops.c session.c asp2php.c
+CLEANFILES+= gtkasp2php.o gtkasp2php
gtkasp2php: gtkasp2php.c
$(CC) -o gtkasp2php gtkasp2php.c `gtk-config --cflags` `gtk-config --libs`
-unipiss:
- $(CC) -o unipiss unipiss.c html.o general.o -Wall
-
install:
- @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"
+ @if [ -e asp2php ]; then $(BSD_INSTALL_PROGRAM) asp2php $(PREFIX)/bin; fi;
+ @echo "Compiled programs have been installed in $(PREFIX)/bin"
@echo ""
-all: default
-
+install-gtk:
+ @if [ -e gtkasp2php ]; then $(BSD_INSTALL_PROGRAM) gtkasp2php $(PREFIX)/bin; fi;
+.include <bsd.prog.mk>
|