[r630]: fantom.mak Maximize Restore History

Download this file

fantom.mak    41 lines (29 with data), 1.2 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
PROGRAMS = libfantom.so libnxtspirit.so spirittest
VER = 1.2.1.r5
DOBJECTS=fantom.dpr nxtspirit.dpr spirittest.dpr
FANTOM_SRC = bricktools/FANTOM.pas bricktools/FANTOM_CONST.INC bricktools/fantomfpc.pas bricktools/libusb.pas bricktools/FantomDefs.pas bricktools/libspirit.pas bricktools/fantomspiritlib.pas bricktools/brick_common.pas bricktools/FantomSpirit.pas
EXCLUDES = --exclude=*.exe --exclude=*.zip --exclude=*.o --exclude=*.~* --exclude=*.dll
all:: $(DOBJECTS) $(PROGRAMS)
clean::
rm -f *.o *.ppu *.rst *.compiled bricktools/*.o bricktools/*.ppu
realclean:: clean
rm -f $(PROGRAMS)
PFLAGS=-S2cdghi -dRELEASE -g -fPIC -vewnhi -l -Fu. -Fubricktools -FuNXT -dNXT_ONLY
# Linux
#PTOOLPREFIX=/usr/bin/
PPC=$(PTOOLPREFIX)fpc
# how to link executable
libfantom.so: fantom.dpr
$(PPC) $(PFLAGS) $< -o$@
libnxtspirit.so: nxtspirit.dpr
$(PPC) $(PFLAGS) $< -o$@
spirittest: spirittest.dpr spirittest_preproc.inc
$(PPC) $(PFLAGS) $< -o$@
# how to compile pas source
%.o: %.pas
$(PPC) $(PFLAGS) $< -o$@
# how to create the include file
spirittest_preproc.inc:
echo '// '$@ > $@
echo 'const' >> $@
echo ' COMPILATION_TIMESTAMP = '\'`date`\'';' >> $@