aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2010-04-01 04:17:21 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2010-04-01 04:17:21 +0000
commitdcf1df7ea54a678406ac4a295e6b8272bad36556 (patch)
tree1a24f88bcb31110b21382fa2dbe2ccf77b1f531e /utils
parentc74ed01de6f00ecd6f1905c9ec6674e25207f5fb (diff)
downloadsg3_utils-dcf1df7ea54a678406ac4a295e6b8272bad36556.tar.gz
first cut of sync with sbc3r22
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@333 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile.cygwin33
-rw-r--r--utils/README7
2 files changed, 37 insertions, 3 deletions
diff --git a/utils/Makefile.cygwin b/utils/Makefile.cygwin
new file mode 100644
index 00000000..86e9fa34
--- /dev/null
+++ b/utils/Makefile.cygwin
@@ -0,0 +1,33 @@
+# Assumes Makefile is used in a cygwin shell
+
+SHELL = /bin/sh
+
+CC = gcc
+LD = gcc
+
+EXECS = hxascdmp
+
+EXE_S = hxascdmp.exe
+
+# OS_FLAGS = -DSG_LIB_WIN32 -DSPTD
+OS_FLAGS = -DSG_LIB_WIN32
+LARGE_FILE_FLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+EXTRA_FLAGS = $(OS_FLAGS) $(LARGE_FILE_FLAGS)
+
+# CFLAGS = -O2 -Wall -W $(EXTRA_FLAGS)
+CFLAGS = -g -O2 -Wall -W $(EXTRA_FLAGS)
+# CFLAGS = -g -O2 -Wall -W -pedantic -std=c99 $(EXTRA_FLAGS)
+
+LDFLAGS =
+
+all: $(EXECS)
+
+clean:
+ rm *.o $(EXE_S)
+
+.c.o:
+ $(CC) $(INCLUDES) $(CFLAGS) $(S_CFLAGS) -c -o $@ $<
+
+hxascdmp: hxascdmp.o
+ $(LD) -o $@ $(LDFLAGS) $@.o
+
diff --git a/utils/README b/utils/README
index a5e4fcdc..1662c928 100644
--- a/utils/README
+++ b/utils/README
@@ -15,8 +15,9 @@ This directory contains these utilities:
By default, the Makefile only builds the hxascdmp utility. The 'Makefile'
file (i.e. with no suffix) builds for Linux; the 'Makefile.freebsd' file
builds for FreeBSD (e.g. 'make -f Makefile.freebsd'); the
-'Makefile.solaris' file builds for Solaris; and the 'Makefile.mingw' builds
-in the Windows MinGW environment (e.g. msys shell).
+'Makefile.solaris' file builds for Solaris; the 'Makefile.mingw' builds
+in the Windows MinGW environment (e.g. msys shell); and 'Makefile.cygwin'
+builds in the Windows Cygwin environment.
To build sg_chk_asc the sg_lib.o and sg_lib_data.o files must be present
(i.e. compiled) in the lib/ subdirectory. One way to meet that requirement
@@ -25,4 +26,4 @@ Then return to this directory and do 'make sg_chk_asc'.
Doug Gilbert
-23rd June 2008
+30th March 2010