-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (34 loc) · 876 Bytes
/
Makefile
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
#-------------------------------------------------#
#
# Make file for Snes9X ROM Launcher
#
# Comment, Uncomment, or Edit the following
# lines in order to enable, disable, and/or Edit
# certain options.
#
#-------------------------------------------------#
# C++ compiler
CC= g++
DEBUG= -g -Wall -pedantic
OPT= -O6 -Wall -pedantic
#Uncomment below for normal use
CFLAGS= $(OPT) $(DEPS)
#Uncomment below for Debugging
#CFLAGS= $(DEBUG) $(DEPS)
PKGINSTALL= install
LIBS= -ltermcap -lreadline
INSTALLDIR= /usr/local/bin
MANDIR= /usr/local/man
RM= /bin/rm -f
.cpp.c.o:
$(CC) -c $(CFLAGS)
all: sneslaunch
sneslaunch: main.cpp funcs.hpp header.hpp
$(CC) $(CFLAGS) $(INCS) main.cpp $(LIBS) -o csnes9x
install: sneslaunch
$(PKGINSTALL) csnes9x $(INSTALLDIR)
strip $(INSTALLDIR)/csnes9x
clean:
$(RM) csnes9x
uninstall: $(INSTALLDIR)/csnes9x
$(RM) $(INSTALLDIR)/csnes9x