|
Lines 1-6
Link Here
|
| 1 |
--- makefile.orig Fri May 31 05:31:34 2002 |
1 |
--- makefile.orig 2009-08-29 15:28:59.000000000 -0300 |
| 2 |
+++ makefile Sat Jun 1 13:33:20 2002 |
2 |
+++ makefile 2009-08-29 15:30:34.000000000 -0300 |
| 3 |
@@ -10,7 +10,6 @@ |
3 |
@@ -28,7 +28,6 @@ |
| 4 |
# Set this for where to store the man pages and executables. |
4 |
# Set this for where to store the man pages and executables. |
| 5 |
# If you want to store this as part of an official distribution, |
5 |
# If you want to store this as part of an official distribution, |
| 6 |
# change this to "/usr": |
6 |
# change this to "/usr": |
|
Lines 8-14
Link Here
|
| 8 |
|
8 |
|
| 9 |
# Set "EXE_SUFFIX" to ".exe" if you're running on Windows, like this: |
9 |
# Set "EXE_SUFFIX" to ".exe" if you're running on Windows, like this: |
| 10 |
# EXE_SUFFIX=.exe |
10 |
# EXE_SUFFIX=.exe |
| 11 |
@@ -19,7 +18,6 @@ |
11 |
@@ -37,7 +36,6 @@ |
| 12 |
# Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc". |
12 |
# Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc". |
| 13 |
# The "-Wall" option turns on warnings in gcc. gcc users might also want |
13 |
# The "-Wall" option turns on warnings in gcc. gcc users might also want |
| 14 |
# to consider using "-Werror", which turns warnings into errors. |
14 |
# to consider using "-Werror", which turns warnings into errors. |
|
Lines 16-22
Link Here
|
| 16 |
|
16 |
|
| 17 |
# Set this to the name of your "install" program. On some systems, |
17 |
# Set this to the name of your "install" program. On some systems, |
| 18 |
# "install -C" would be useful (so unchanged files won't be modified), |
18 |
# "install -C" would be useful (so unchanged files won't be modified), |
| 19 |
@@ -47,7 +45,7 @@ |
19 |
@@ -70,7 +68,7 @@ |
| 20 |
ARCH=i386 |
20 |
ARCH=i386 |
| 21 |
VERSIONEDNAME=$(NAME)-$(VERSION) |
21 |
VERSIONEDNAME=$(NAME)-$(VERSION) |
| 22 |
INSTALL_DIR=$(PREFIX)/bin |
22 |
INSTALL_DIR=$(PREFIX)/bin |
|
Lines 25-83
Link Here
|
| 25 |
MAN_DIR_MAN1=$(MAN_DIR)/man1 |
25 |
MAN_DIR_MAN1=$(MAN_DIR)/man1 |
| 26 |
DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION) |
26 |
DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION) |
| 27 |
POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount |
27 |
POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount |
| 28 |
@@ -92,7 +90,7 @@ |
|
|
| 29 |
sql_count \ |
| 30 |
tcl_count |
| 31 |
|
| 32 |
-MANPAGES=sloccount.1.gz |
| 33 |
+MANPAGES=sloccount.1 |
| 34 |
|
| 35 |
MYDOCS=sloccount.html README TODO ChangeLog |
| 36 |
|
| 37 |
@@ -100,13 +98,13 @@ |
| 38 |
all: lexcount1$(EXE_SUFFIX) c_count$(EXE_SUFFIX) java_count$(EXE_SUFFIX) php_count$(EXE_SUFFIX) |
| 39 |
|
| 40 |
lexcount1$(EXE_SUFFIX): lexcount1.c |
| 41 |
- $(CC) lexcount1.c -o lexcount1$(EXE_SUFFIX) |
| 42 |
+ $(CC) ${CFLAGS} lexcount1.c -o lexcount1$(EXE_SUFFIX) |
| 43 |
|
| 44 |
c_count$(EXE_SUFFIX): c_count.c |
| 45 |
- $(CC) c_count.c -o c_count$(EXE_SUFFIX) |
| 46 |
+ $(CC) ${CFLAGS} c_count.c -o c_count$(EXE_SUFFIX) |
| 47 |
|
| 48 |
php_count$(EXE_SUFFIX): php_count.c |
| 49 |
- $(CC) php_count.c -o php_count$(EXE_SUFFIX) |
| 50 |
+ $(CC) ${CFLAGS} php_count.c -o php_count$(EXE_SUFFIX) |
| 51 |
|
| 52 |
sloccount.1.gz: sloccount.1 |
| 53 |
gzip -c sloccount.1 > sloccount.1.gz |
| 54 |
@@ -117,25 +115,23 @@ |
| 55 |
|
| 56 |
# This is USC's code counter, not built by default: |
| 57 |
c_lines: C_LINES.C |
| 58 |
- $(CC) C_LINES.C -o c_lines$(EXE_SUFFIX) |
| 59 |
+ $(CC) ${CFLAGS} C_LINES.C -o c_lines$(EXE_SUFFIX) |
| 60 |
|
| 61 |
|
| 62 |
install_programs: all |
| 63 |
- $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR) |
| 64 |
+ ${BSD_INSTALL_SCRIPT} $(EXECUTABLES) $(INSTALL_DIR) |
| 65 |
|
| 66 |
uninstall_programs: |
| 67 |
cd $(INSTALL_DIR) && rm -f $(EXECUTABLES) |
| 68 |
|
| 69 |
install_man: |
| 70 |
- $(INSTALL_A_DIR) $(MAN_DIR_MAN1) |
| 71 |
- $(INSTALL) $(MANPAGES) $(MAN_DIR_MAN1) |
| 72 |
+ ${BSD_INSTALL_MAN} $(MANPAGES) $(MAN_DIR_MAN1) |
| 73 |
|
| 74 |
uninstall_man: |
| 75 |
cd $(MAN_DIR_MAN1) && rm -f $(MANPAGES) |
| 76 |
|
| 77 |
install_docs: install_man |
| 78 |
- $(INSTALL_A_DIR) $(DOC_DIR) |
| 79 |
- $(INSTALL) $(MYDOCS) $(DOC_DIR) |
| 80 |
+ ${BSD_INSTALL_DATA} $(MYDOCS) $(DOC_DIR) |
| 81 |
|
| 82 |
uninstall_docs: |
| 83 |
cd $(DOC_DIR) && rm -f $(MYDOCS) && rmdir $(DOC_DIR) |