30 lines
794 B
Diff
30 lines
794 B
Diff
--- Makefile.orig 2008-01-13 00:10:11.000000000 +0100
|
|
+++ Makefile 2008-01-13 06:28:27.000000000 +0100
|
|
@@ -5,15 +5,10 @@
|
|
|
|
CC := gcc
|
|
CXX := g++
|
|
-CFLAGS += -g -O -Wall -Wuninitialized -Wno-long-long -Wno-multichar -DUNIX
|
|
# LDFLAGS +=
|
|
|
|
# Additional warnings
|
|
-CFLAGS+= -Wshadow
|
|
-CFLAGS+= -pedantic
|
|
-CFLAGS+= -Wpointer-arith -Wcast-qual -Wcast-align
|
|
# -Wconversion
|
|
-CFLAGS+= -Wshadow -Wimplicit -Wundef -Wwrite-strings
|
|
|
|
TARGETS := \
|
|
compress_agos$(EXEEXT) \
|
|
@@ -65,6 +60,10 @@
|
|
compress_scumm_bun$(EXEEXT): compress_scumm_bun.o compress.o util.o
|
|
$(CXX) $(LDFLAGS) -o $@ $+
|
|
|
|
+install: all
|
|
+ mkdir -p $(DESTDIR)/usr/games
|
|
+ install -m 755 $(TARGETS) $(DESTDIR)/usr/games
|
|
+
|
|
compress_scumm_san$(EXEEXT): compress_scumm_san.o compress.o util.o
|
|
$(CXX) $(LDFLAGS) -o $@ $+ -lz
|
|
|