File: Makefile

package info (click to toggle)
openmsx 20.0%2Bdfsg-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,544 kB
  • sloc: cpp: 236,922; xml: 49,948; tcl: 15,056; python: 5,385; perl: 281; sh: 77; makefile: 53
file content (14 lines) | stat: -rw-r--r-- 406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
all: build/tsx2wav

CXXFLAGS += -I../../src/utils -Wall -Wextra -O3 $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CXXFLAGS) -std=c++20 -flto=auto
LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS) -flto=auto

build/%.o:%.cc Makefile
	mkdir -p build
	g++ -c $(CXXFLAGS) $< -o $@

%: %.o build/TsxParser.o Makefile
	g++ $(LDFLAGS) $(filter %.o,$^) -o $@ $(LDADD)

clean:
	rm -rf build