mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
--- Makefile.ldc.orig 2021-01-21 17:07:49 UTC
|
|
+++ Makefile.ldc
|
|
@@ -1,5 +1,7 @@
|
|
# make install DESTDIR=/home/yamo/devel/cc2/snap/parts/ccutter/install
|
|
|
|
+PREFIX?=/usr
|
|
+EXAMPLESDIR?=/usr/share/examples/ccutter
|
|
LIBS=-L-ldl -L-lstdc++
|
|
COMFLAGS=-O2
|
|
VERSION=$(shell cat Version)
|
|
@@ -19,7 +21,7 @@ include Makefile.objects.mk
|
|
all: ct2util ccutter
|
|
|
|
ccutter:$(C64OBJS) $(OBJS) $(CXX_OBJS)
|
|
- $(DC) $(COMFLAGS) -of=$@ $(OBJS) $(CXX_OBJS) $(LIBS)
|
|
+ $(DC) $(COMFLAGS) $(DLDFLAGS) -of=$@ $(OBJS) $(CXX_OBJS) $(LIBS)
|
|
|
|
|
|
.cpp.o : $(CXX_SRCS)
|
|
@@ -31,17 +33,17 @@ ccutter:$(C64OBJS) $(OBJS) $(CXX_OBJS)
|
|
ct: $(C64OBJS) $(CTOBJS)
|
|
|
|
ct2util: $(C64OBJS) $(UTILOBJS)
|
|
- $(DC) $(COMFLAGS) -of=$@ $(UTILOBJS)
|
|
+ $(DC) $(COMFLAGS) $(DLDFLAGS) -of=$@ $(UTILOBJS)
|
|
|
|
c64: $(C64OBJS)
|
|
|
|
install: all
|
|
strip ccutter$(EXE)
|
|
strip ct2util$(EXE)
|
|
- cp ccutter$(EXE) $(DESTDIR)
|
|
- cp ct2util$(EXE) $(DESTDIR)
|
|
- mkdir $(DESTDIR)/example_tunes
|
|
- cp -r tunes/* $(DESTDIR)/example_tunes
|
|
+ cp ccutter$(EXE) $(DESTDIR)$(PREFIX)/bin
|
|
+ cp ct2util$(EXE) $(DESTDIR)$(PREFIX)/bin
|
|
+ mkdir -p $(DESTDIR)/$(EXAMPLESDIR)/example_tunes
|
|
+ cp -r tunes/* $(DESTDIR)/$(EXAMPLESDIR)/example_tunes
|
|
|
|
# release version with additional optimizations
|
|
release: DFLAGS += -frelease -fno-bounds-check
|