[r630]: toolsunix64.mak Maximize Restore History

Download this file

toolsunix64.mak    136 lines (113 with data), 4.3 kB

  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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
LAZRESPREFIX=/usr/lib64/lazarus/tools/
#PTOOLPREFIX=/usr/local/bin/
DEFAULT_INCLUDE_DIR=.
ARCH=x64
FPC_TARGET=x86_64-linux
WIDGETSET=gtk2
PPC=$(PTOOLPREFIX)ppc$(ARCH)
EXTRAFLAGS=
ROOT=/usr/local/share
LAZROOT=/usr/lib64/lazarus
PSROOT=$(LAZROOT)/components/pascalscript/
PFLAGS=-S2cdghi -dRELEASE -vewnhi -Fu. -Fubricktools $(EXTRAFLAGS)
LFLAGS=-S2cdghi -dRELEASE -vewnhi -Fu. -Fubricktools -FuNXT -Fupng -Fusyn -Fusamplerate -Fugrep -Fu$(LAZROOT)/lcl/units/$(FPC_TARGET)/ -Fu$(LAZROOT)/components/synedit/units/$(FPC_TARGET)/ -Fu$(LAZROOT)/lcl/units/$(FPC_TARGET)/ -Fu$(LAZROOT)/lcl/units/$(FPC_TARGET)/$(WIDGETSET)/ -Fu$(LAZROOT)/packager/units/$(FPC_TARGET)/ -Fu$(PSROOT)/Source/lib/$(FPC_TARGET)/ -dLCL -dLCL$(WIDGETSET) -dNXT_ONLY -dCAN_DOWNLOAD $(EXTRAFLAGS)
FORMS=uToolPalette.lrs uPortPrompt.lrs Controller.lrs Diagnose.lrs JoystickUnit.lrs uJoyActions.lrs \
MessageUnit.lrs Piano.lrs RemoteUnit.lrs uNXTImage.lrs Watch.lrs uMIDIConversion.lrs \
uWav2RSO.lrs MemoryUnit.lrs uRemoteProgMap.lrs uNXTName.lrs Unlock.lrs uNXTExplorer.lrs \
uportsedit.lrs uNXTImagePrefs.lrs uEEAlignConfig.lrs uEEAlignOpt.lrs ucodeedit.lrs \
CodeTemplates.lrs CodeUnit.lrs dlgConfirmReplace.lrs dlgReplaceText.lrs dlgSearchText.lrs \
EditCodeTemplate.lrs GotoLine.lrs GX_ProcedureList.lrs Transdlg.lrs uCompStatus.lrs \
uExplorerOptions.lrs uMacroEditor.lrs uCodeExplorer.lrs ConstructUnit.lrs uMacroForm.lrs
clean::
rm -f *.o *.ppu *.rst *.compiled *_preproc.inc bricktools/*.o bricktools/*.ppu nxt/*.o nxt/*.ppu samplerate/*.o samplerate/*.ppu syn/*.o syn/*.ppu grep/*.o grep/*.ppu
realclean:: clean
rm -f $(PROGRAMS)
midibatch:: MidiBatch.dpr midibatch_preproc.inc uMidiBatch.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nextexplorer:: NeXTExplorer.dpr nextexplorer_preproc.inc uNXTExplorer.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nextscreen:: NeXTScreen.dpr nextscreen_preproc.inc uNXTImage.lrs uNXTName.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtdiagnose:: nxtdiagnose.dpr nxtdiagnose_preproc.inc Diagnose.lrs uNXTName.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtdirect:: nxtdirect.dpr nxtdirect_preproc.inc Controller.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtjoy:: nxtjoy.dpr nxtjoy_preproc.inc JoystickUnit.lrs uPortPrompt.lrs uJoyActions.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtmessage:: nxtmessage.dpr nxtmessage_preproc.inc MessageUnit.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtpiano:: nxtpiano.dpr nxtpiano_preproc.inc Piano.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtremote:: nxtremote.dpr nxtremote_preproc.inc RemoteUnit.lrs uRemoteProgMap.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtwatch:: nxtwatch.dpr nxtwatch_preproc.inc Watch.lrs uPortPrompt.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
wav2rso:: wav2rso.dpr wav2rso_preproc.inc uWav2RSO.lrs
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxttools:: nxttools.dpr nxttools_preproc.inc $(FORMS)
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
nxtcc:: nxtcc.lpr nxtcc_preproc.inc $(FORMS)
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
bricxcc:: bricxcc.dpr bricxcc_preproc.inc
$(PPC) $(LFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
wavrsocvt: wavrsocvt.dpr wavrsocvt_preproc.inc
$(PPC) $(PFLAGS) $< -o$@
strip $@
mkdir -p $(ARCH)
mv $@ ./$(ARCH)
%.u: ./386/% ./ppc/%
lipo -create $^ -output $@
# how to compile pas source
%.o: %.pas
$(PPC) $(LFLAGS) $< -o$@
# how to compile resource file
%.lrs: %.lfm
$(LAZRESPREFIX)lazres $@ $<
# how to create the include file
%_preproc.inc:
echo '// '$@ > $@
echo 'const' >> $@
echo ' DEFAULT_INCLUDE_DIR = '\'$(DEFAULT_INCLUDE_DIR)\'';' >> $@
echo ' COMPILATION_TIMESTAMP = '\'`date`\'';' >> $@