This repository has been archived by the owner on Dec 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_clipper_linux
116 lines (82 loc) · 2.46 KB
/
Makefile_clipper_linux
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#
# Sigma-com Zenica 2002-2006
#
# authors:
#
# ver 02.00, 28.05.06
#
BUILD_ENV_LINUX=1
LIBSUFFIX=
LIBEXT=.lib
DOSEMUROOT=~/.dosemu/drive_c
SC_BUILD_ROOT_DOS=c:\\git
CLIPPERCOMP=$(BASEDIR)/fmk_lib/clipper.rb
CLIPPERROOT=$(DOSEMUROOT)/Clipper
CLIPPERROOT_DOS=c:\\Clipper
EXE_DEST=$(BASEDIR)/fmk_lib/exe
EXEDOSDEST=c:\\git\\fmk_lib\\exe
LINKEREXE=$(BASEDIR)/fmk_lib/blink_linux.sh
LIBEXE=$(BASEDIR)/fmk_lib/clipper.rb --make-lib
CPLIB=cp
RMLIB=rm -f
#asembler
ASMFLAGS=
#c kompajler
CFLAGS=/n /w /c /AL /FPa /Gs /Zl
ROBODOC=robodoc
ifndef DEBUG
DEBUG=0
endif
ifndef BLINKER_SEARCH_EXT
BLINKER_SEARCH_EXT=1
endif
ifndef BLINKER_SEARCH_FIONS
BLINKER_SEARCH_FIONS=1
endif
ifndef VERZIJA
VERZIJA=CDX
endif
ifeq "$(DEBUG)" "1"
#LIB_DEST=$(SC_BUILD_HOME_DIR)/sc/lib/debug/
LIB_DEST=$(BASEDIR)/fmk_lib/lib/
DEBUGCMD=--debug 1
else
LIB_DEST=$(BASEDIR)/fmk_lib/lib/
DEBUGCMD=
endif
ALL_LIBS=$(addprefix $(LIB_DEST), $(FMK_LIBS) $(SCLIB_LIBS) $(MODUL_LIBS) )
LINKCMD=$(addprefix $(PREFPLUS) , $(OBJPRGS) $(OBJASMS) $(OBJCS) )
ifeq "${PP}" "1"
CLIPPERFLAGS += /p
endif
ifeq "${LIB}" "1"
CLIPPERFLAGS += /DLIB
endif
lib: $(MODUL).lib
$(MODUL).lib : $(OBJS)
$(RMLIB) $(MODUL)$(LIBEXT)
$(LIBEXE) "$(MODUL)$(LIBEXT) $(LIBCMD) $(LIBSUFFIX)"
$(CPLIB) $(MODUL)$(LIBEXT) $(LIB_DEST)
exe: e.exe
e.exe : $(ALL_LIBS) $(OBJS)
@echo BLINKER_SEARCH_EXT=$(BLINKER_SEARCH_EXT)
@echo BLINKER_SEARCH_FIONS=$(BLINKER_SEARCH_FIONS)
$(BASEDIR)/fmk_lib/gen_bl_lnk.sh create $(FMKLIBCMD)
$(BASEDIR)/fmk_lib/gen_bl_lnk.sh add $(LINKCMD)
$(BASEDIR)/fmk_lib/clipper.rb $(DBG) --output-exe "e.exe" $(DEBUGCMD) --blink $(CURR_DIR)
cp $(CURR_DIR)/e.exe $(EXE_DEST)/$(EXENAME)
zip:
$(BASEDIR)/fmk_lib/zip.sh h:\\cs\\FMK\\binary\\$(MODUL).zip ..\\chs\\\*.chs c:\\dev\\fmk\af\cl-af\\svi\\\*.chs ..\template\\\*.txt $(EXEDOSDEST)\\$(MODUL).EXE
commit:
$(BASEDIR)/commit.sh $(MODUL) h:\\cs\\FMK\\binary\\$(MODUL).zip
$(BASEDIR)/commit.sh $(MODUL) h:\\cs\\FMK\\binary\\sfx\\$(MODUL).exe
7exe:
$(BASEDIR)/7exe.sh h:\\cs\\fmk\\binary\\sfx\\$(MODUL).exe ..\\chs\\\*.chs \\dev\\fmk\\af\\cl-af\\svi\\\*.chs ..\\template\\\*.txt $(EXEDOSDEST)\\$(MODUL).EXE
%.obj : %.prg
$(CLIPPERCOMP) $(DEBUGCMD) --switches '$(CLIPPERFLAGS)' --compile $<
#$(CLIPPERCOMP) --switches '$(CLIPPERFLAGS)' --compile-all "$(SRCDOSROOT) $(PRGS)"
.asm.obj:
$(CLIPPERCOMP) --switches '$(ASMFLAGS)' --asm-compile $<
.c.obj:
$(CLIPPERCOMP) --switches '$(CFLAGS)' --c-compile $<