2 # Temperature.app Makefile
6 GNUSTEP_BINDIR
= /usr
/local
/GNUstep
/Apps
/Temperature.app
7 X11_BINDIR
= /usr
/X11R6
/bin
10 CXXFLAGS
+= -Wall
-pedantic
-fno-rtti
-fno-exceptions
-O2
-I
/usr
/X11R6
/include
11 LDFLAGS
+= -L
/usr
/X11R6
/lib
-lXpm
-lXext
-lX11
13 OBJECTS
= Main.o Temperature.o Xpm.o
17 Temperature.app
: $(OBJECTS
)
18 $(CXX
) $(OBJECTS
) -o
$@
$(LDFLAGS
)
20 .PHONY
: install install-gnustep install-x11
clean
22 install: install-gnustep
25 install -d
$(DESTDIR
)$(GNUSTEP_BINDIR
)
26 install -m
0755 Temperature.app
$(DESTDIR
)$(GNUSTEP_BINDIR
)/Temperature
29 install -d
$(DESTDIR
)$(X11_BINDIR
)
30 install -m
0755 Temperature.app
$(DESTDIR
)$(X11_BINDIR
)/Temperature.app