forked from okbob/pspg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 891 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
all:
# Include setting from the configure script
-include config.make
ifdef COMPILE_MENU
ST_MENU_OFILES=st_menu.o st_menu_styles.o
endif
all: pspg
st_menu_styles.o: src/st_menu_styles.c config.make
$(CC) -O3 src/st_menu_styles.c -c $(CFLAGS)
st_menu.o: src/st_menu.c config.make
$(CC) -O3 src/st_menu.c -c $(CFLAGS)
pspg: src/pspg.h src/unicode.h src/pspg.c src/unicode.c src/themes.c src/print.c src/config.c src/commands.h src/menu.c src/commands.c $(ST_MENU_OFILES) config.make
$(CC) -O3 src/pspg.c src/print.c src/unicode.c src/themes.c src/config.c src/menu.c src/commands.c $(ST_MENU_OFILES) -o pspg $(CFLAGS) $(LDFLAGS) $(LDLIBS)
clean:
$(RM) $(ST_MENU_OFILES)
$(RM) pspg
distclean: clean
$(RM) -r autom4te.cache
$(RM) aclocal.m4 configure
$(RM) config.h config.log config.make config.status config.h.in
install: all
tools/install.sh bin pspg "$(DESTDIR)$(bindir)"