1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
# The unregistered unace GNU makefile
# if you don't have GNU make or bash, then you should proly
# remove the ifeq <-> endif statments, and configure CFLAGS yourself
#
# orig - chad hurwitz 3-11-98 churritz@cts.com
#
# -DCASEINSENSE is for people with case insensitive filesystems
#
OBJ = globals.o uac_comm.o uac_crc.o uac_crt.o uac_dcpr.o uac_sys.o unace.o
SRC = globals.c uac_comm.c uac_crc.c uac_crt.c uac_dcpr.c uac_sys.c unace.c
#CFLAGS = -dNOSTRICMP #for UNIX compilers not supporting stricmp()
#CFLAGS = -dHI_LO_BYTE_ORDER #select correct byte order for your machine!!
#CFLAGS = -Wall -O3 -s #-DNDEBUG
#CFLAGS = -g -Wall -DMDEBUG
#CFLAGS = -O3 -fno-strength-reduce -fomit-frame-pointer # These are for Linux
CFLAGS = -O -g -Wall -dLO_HI_BYTE_ORDER
CHALLOC = challoc.o
CHALLOC =
CHNEW = chnew.o challoc.o
CC = gcc
ifeq ($(OSTYPE), Linux)
CFLAGS += -DUNIX -DCASEINSENSE
else
ifeq ($(OSTYPE), DOS)
EXEEXT = .exe
CFLAGS += -DDOS
else
CFLAGS += -DUNIX -DCASEINSENSE
endif
endif
# not all systems require the math library
#LIBS = -lm
unace$(EXEEXT): $(OBJ) $(CHALLOC)
gcc $(CFLAGS) -o $@ $^ $(LIBS)
clean:
rm -f *.o a.out core unace unace.exe
dep:
chmod a+rx ./gccmaked
./gccmaked -- $(CFLAGS) -- *.c*
rm -f ?akefile.bak
# DO NOT DELETE
globals.o: globals.c os.h acestruc.h declare.h portable.h unace.h
uac_comm.o: uac_comm.c globals.h acestruc.h declare.h portable.h os.h \
unace.h uac_dcpr.h uac_comm.h
uac_crc.o: uac_crc.c uac_crc.h declare.h
uac_crt.o: uac_crt.c os.h globals.h acestruc.h declare.h portable.h \
unace.h uac_crt.h uac_sys.h
uac_dcpr.o: uac_dcpr.c os.h globals.h acestruc.h declare.h portable.h \
unace.h uac_comm.h uac_crc.h uac_dcpr.h uac_sys.h
uac_sys.o: uac_sys.c os.h globals.h acestruc.h declare.h portable.h \
unace.h uac_sys.h
unace.o: unace.c os.h globals.h acestruc.h declare.h portable.h \
unace.h uac_comm.h uac_crc.h uac_crt.h uac_dcpr.h uac_sys.h
|