1# Assumes Makefile is used in a cygwin shell 2 3SHELL = /bin/sh 4 5CC = gcc 6LD = gcc 7 8EXECS = hxascdmp 9 10EXE_S = hxascdmp.exe 11 12# OS_FLAGS = -DSG_LIB_WIN32 -DSPTD 13OS_FLAGS = -DSG_LIB_WIN32 14LARGE_FILE_FLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 15EXTRA_FLAGS = $(OS_FLAGS) $(LARGE_FILE_FLAGS) 16 17# CFLAGS = -O2 -Wall -W $(EXTRA_FLAGS) 18CFLAGS = -g -O2 -Wall -W $(EXTRA_FLAGS) 19# CFLAGS = -g -O2 -Wall -W -pedantic -std=c99 $(EXTRA_FLAGS) 20 21LDFLAGS = 22 23all: $(EXECS) 24 25clean: 26 rm *.o $(EXE_S) 27 28.c.o: 29 $(CC) $(INCLUDES) $(CFLAGS) $(S_CFLAGS) -c -o $@ $< 30 31hxascdmp: hxascdmp.o 32 $(LD) -o $@ $(LDFLAGS) $@.o 33 34