[go: up one dir, main page]

File: Makefile

package info (click to toggle)
licenserecon 8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: pascal: 1,465; makefile: 33; xml: 9; sh: 2
file content (37 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (2)
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
# Makefile for licenserecon
# Copyright : 2023-2024 P Blackman
# License   : BSD-2-clause

# Add -gl -dDEBUG to CFLAGS to debug

# code won't compile in PIC mode on m68k
ifeq ($(DEB_HOST_ARCH),m68k)
  CFLAGS = -Sj- -Co -Ci -Cr -CR -Sa -Sh- -vhqw -O4 -XX
else
  CFLAGS = -Cg -Sj- -Co -Ci -Cr -CR -Sa -Sh- -vhqw -O4 -XX
endif

# -pie not working om ppc64el
ifeq ($(DEB_HOST_ARCH),ppc64el)
  LDFLAGS = -k-znow
else
  LDFLAGS = -k-pie -k-znow
endif

lrc: *.pas po/*.po
	fpc $(CFLAGS) $(LDFLAGS) lrc.pas
	rstconv -i rstrings.rsj -o po/lrc.pot
	msgfmt -cv po/de.po -o po/de.mo
	msgfmt -cv po/es.po -o po/es.mo
	msgfmt -cv po/fr.po -o po/fr.mo
	msgfmt -cv po/it.po -o po/it.mo
	msgfmt -cv po/pt.po -o po/pt.mo
	msgfmt -cv po/sv.po -o po/sv.mo

clean:
	-rm *.o
	-rm *.ppu
	-rm *.res
	-rm *.rsj
	-rm po/*.mo
	-rm lrc