File: Makefile.nix

package info (click to toggle)
gnuboy 1.0.3-3
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k, lenny
  • size: 1,064 kB
  • ctags: 2,349
  • sloc: ansic: 12,467; asm: 2,641; cpp: 190; makefile: 175; sh: 152
file content (64 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download | duplicates (16)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Makefile.nix
#
# This is a *bare minimum* makefile for building gnuboy on *nix systems.
# If you have trouble with the configure script you can try using this,
# but *please* try the configure script first. This file is mostly
# unmaintained and may break.
#
# If you *do* insist on using this makefile, you at least need to check
# SYS_DEFS below and uncomment -DIS_LITTLE_ENDIAN if your system is
# little endian. Also, you may want to enable the OSS sound module if
# your system supports it.
#

prefix = /usr/local
bindir = /bin

CC = gcc
AS = $(CC)
LD = $(CC)
INSTALL = /bin/install -c

CFLAGS = -O3
LDFLAGS = 
ASFLAGS = 

SYS_DEFS = #-DIS_LITTLE_ENDIAN
ASM_OBJS = 
#SND_OBJS = sys/oss/oss.o
SND_OBJS = sys/dummy/nosound.o
JOY_OBJS = sys/dummy/nojoy.o

TARGETS = xgnuboy

SYS_OBJS = sys/nix/nix.o $(ASM_OBJS) $(SND_OBJS) $(JOY_OBJS)
SYS_INCS = -I/usr/local/include -I/usr/X11R6/include -I./sys/nix

X11_OBJS = sys/x11/xlib.o sys/x11/keymap.o
X11_LIBS = -L/usr/X11R6/lib -lX11 -lXext

all: $(TARGETS)

include Rules

xgnuboy: $(OBJS) $(SYS_OBJS) $(X11_OBJS)
	$(LD) $(LDFLAGS) $(OBJS) $(SYS_OBJS) $(X11_OBJS) -o $@ $(X11_LIBS)

install: all
	$(INSTALL) -m 755 $(TARGETS) $(prefix)$(bindir)

clean:
	rm -f *gnuboy gmon.out *.o sys/*.o sys/*/*.o asm/*/*.o