From dcf1df7ea54a678406ac4a295e6b8272bad36556 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 1 Apr 2010 04:17:21 +0000 Subject: first cut of sync with sbc3r22 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@333 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- utils/Makefile.cygwin | 33 +++++++++++++++++++++++++++++++++ utils/README | 7 ++++--- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 utils/Makefile.cygwin (limited to 'utils') 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 -- cgit v1.2.3