File: makefile

package info (click to toggle)
mame 0.206+dfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 842,188 kB
  • sloc: cpp: 4,124,963; xml: 1,660,990; ansic: 798,518; sh: 53,655; python: 18,619; lisp: 16,573; makefile: 11,038; yacc: 7,595; java: 7,151; objc: 5,807; cs: 4,725; asm: 4,584; perl: 2,906; ada: 1,681; lex: 1,174; pascal: 1,139; ruby: 323; sql: 160; awk: 35; php: 1
file content (37 lines) | stat: -rw-r--r-- 613 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
# extension for executables
EXE :=

ifeq ($(OS),Windows_NT)
EXE := .exe
endif
ifeq ($(OS),os2)
EXE := .exe
endif

ifndef VERBOSE
  SILENT = @
endif
CC  = gcc
CXX = g++

.PHONY: all clean

all : m68kmake$(EXE) m68kops.cpp

clean:
	@echo Cleaning...
	-@rm -f m68kmake$(EXE)
	-@rm -f m68kmake.o
	-@rm -f m68kops.*

m68kmake.o: m68kmake.cpp
	$(SILENT) $(CC) -x c++ -std=c++11 $(ARCHOPTS) -o "$@" -c "$<"

m68kmake$(EXE) : m68kmake.o
	@echo Linking $@...
	$(SILENT) $(CXX) -lstdc++ $^ -o $@

m68kops.cpp: m68kmake$(EXE)     m68k_in.cpp
	@echo Generating M68K source files...
	$(SILENT) ./m68kmake$(EXE) . m68k_in.cpp