File: makefile

package info (click to toggle)
unace 1.2b-12
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 408 kB
  • ctags: 420
  • sloc: ansic: 1,762; sh: 113; makefile: 93
file content (64 lines) | stat: -rw-r--r-- 1,905 bytes parent folder | download | duplicates (5)
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
64
# 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
CHALLOC = challoc.o
CHALLOC =
CHNEW = chnew.o challoc.o
CC = gcc

OSTYPE = $(shell uname -s)

ifeq ($(OSTYPE), Linux)
CPPFLAGS += -DUNIX -DCASEINSENSE
else
ifeq ($(OSTYPE), DOS)
EXEEXT = .exe
CPPFLAGS += -DDOS
else
CPPFLAGS += -DUNIX -DCASEINSENSE
endif
endif

# not all systems require the math library
#LIBS = -lm


unace$(EXEEXT): $(OBJ) $(CHALLOC) $(LIBS)

clean:
	rm -f *.o a.out core unace unace.exe

dep:
	chmod a+rx ./gccmaked
	./gccmaked -- $(CPPFLAGS) -- *.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