File: Makefile

package info (click to toggle)
euslisp 9.27%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 55,344 kB
  • sloc: ansic: 41,162; lisp: 3,339; makefile: 256; sh: 208; asm: 138; python: 53
file content (39 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download
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
GCC_MACHINE=$(shell gcc -dumpmachine)
$(info "-- GCC_MACHINE = ${GCC_MACHINE}")
OS=$(shell uname -s | sed 's/[^A-Za-z1-9].*//')
$(info "--      OS = ${OS}")
ifeq ($(OS),Linux)
 ifneq (, $(findstring x86_64,$(GCC_MACHINE)))
  export ARCHDIR=Linux64
  export MAKEFILE=Makefile.Linux64
 else
 ifneq (, $(findstring arm,$(GCC_MACHINE)))
  export ARCHDIR=LinuxARM
  export MAKEFILE=Makefile.Linux
 else ifneq (, $(findstring aarch,$(GCC_MACHINE)))
  export ARCHDIR=LinuxARM
  export MAKEFILE=Makefile.Linux
 else
  export ARCHDIR=Linux
  export MAKEFILE=Makefile.Linux
 endif
 endif
endif
$(info "-- ARCHDIR = ${ARCHDIR}")
$(info "-- MAKEFILE = ${MAKEFILE}")

export EUSDIR=$(CURDIR)
$(info "--  EUSDIR = ${EUSDIR}")

all:
	make -C lisp -f $(MAKEFILE) all MAKEFILE=$(MAKEFILE)
	(cd lisp/image/jpeg/; make ARCHDIR=$(ARCHDIR) EUSDIR=$(EUSDIR))

install:
	make -C lisp -f $(MAKEFILE) install
	(cd lisp/image/jpeg/; make ARCH=$(ARCHDIR) install)

clean:
	(cd lisp/image/jpeg/; make ARCH=$(ARCHDIR) clean)
	make -C lisp -f $(MAKEFILE) clean