File: makefile.osx

package info (click to toggle)
unace-nonfree 2.5-1etch1
  • links: PTS
  • area: non-free
  • in suites: etch
  • size: 1,188 kB
  • ctags: 2,483
  • sloc: ansic: 14,574; sh: 179; makefile: 74; cpp: 21
file content (55 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download | duplicates (7)
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
#DEBUG = 1

BASIC_DIRsl     = 
BASIC_DIR       = 


MAKE_DIRsl      = 
MAKE_DIR        = 

EXECS_DIR       = 
EXECS_DIRsl     = 
PACKAGES_DIR    = 
PACKAGES_DIRsl  = 
SRCSsl          = $(BASIC_DIR)source
SRCS            = $(SRCSsl)/

INCLSYSDIR 	= //usr/include/sys
INCLDIR 	= //usr/include

DEFINES		= -D__MACOSX__ -D__unix__ -D__GCC__

ifdef DEBUG
LSWITCHES	=
else
LSWITCHES	= -Wl,-s
endif

##############################################################################
all: unace

clean:
	rm unace
	rm linunace25.tgz
	
include $(MAKE_DIR)base.mk
include $(MAKE_DIR)apps.mk

##############################################################################
UNACEEXELIN_CFILES =					\
  $(BASE_ALL_LIN_CFILES) 	$(BASE_UNACE_CFILES)	\
  $(APPS_EXE_CFILES) 		$(APPS_UNACE_CFILES)	\
  $(APPS_UNACEEXE_CFILES)

UNACEEXENT_CFILES =					\
  $(BASE_ALL_NT_CFILES) 	$(BASE_UNACE_CFILES)	\
  $(APPS_EXE_CFILES) 		$(APPS_UNACE_CFILES)	\
  $(APPS_UNACEEXE_CFILES)

unace: $(UNACEEXELIN_CFILES)
	gcc $(LSWITCHES) -Wl,-lncurses -static -I$(INCLDIR) -I$(INCLSYSDIR) -I$(SRCSsl) $(DEFINES) $(UNACEEXELIN_CFILES) -ggdb -o$(EXECS_DIR)unace
ifndef DEBUG
	tar cfvz linunace25.tgz unace file_id.diz licence
	#sh linpack.sh
endif