diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.cygwin | 33 | ||||
-rw-r--r-- | utils/README | 7 |
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 |