File: Imakefile

package info (click to toggle)
apmd 3.2.2-15
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 508 kB
  • sloc: ansic: 2,884; makefile: 594; sh: 192
file content (57 lines) | stat: -rw-r--r-- 1,394 bytes parent folder | download | duplicates (7)
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
#ifndef XCOMM
#define XCOMM #
#endif

XCOMM Copyright (C) 1999 Nathan Sidwell
XCOMM $Id: Imakefile,v 1.2 1999/08/02 20:09:55 apenwarr Exp $
XCOMM This file is available under the GNU General Public License

XCOMM $Format: "VERSION = $ReleaseMajorVersion$.$ReleaseMinorVersion$"$
VERSION = nathan.0
XCOMM $Format: "APP = $Project$"$
APP = xbattery

XCOMM compiler options
#if HasGcc
EXTRACCOPTIONS = -I.. -Wall -Wpointer-arith -Wwrite-strings -Wtraditional
#endif /* HasGcc */
NDEBUG = -DNDEBUG
CDEBUGFLAGS = -g -O2

DEFINES = $(EXTRACCOPTIONS) $(NDEBUG)
LOCAL_LIBRARIES = ../libapm.a $(XAWLIB) $(XTOOLLIB) $(XMULIB) $(XLIB) $(MATHSLIB)
DEPLIBS = $(DEPXLIB)

HDRS = BatteryGauge.h BatteryGaugeP.h 
SRCS = BatteryGauge.c xbattery.c
FILES = Imakefile README xbattery.man 
OBJS = $(SRCS:.c=.o)
ALLFILES = $(FILES) $(HDRS) $(SRCS)

all :: xbattery
	@#keep gnumake happy

NormalProgramTarget(xbattery,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),)

InstallProgramWithFlags(xbattery,$(BINDIR),$(INSTWIDOWFLAGS))

InstallManPage(xbattery,$(MANDIR))

clean ::
	$(RM) $(OBJS)

tarball:
	@echo Tarring \& feathering into $(APP).$(VERSION).tgz
	$(LN) . $(APP)-$(VERSION)
	tar cf $(APP)-$(VERSION).tar $(ALLFILES:%=$(APP)-$(VERSION)/%)
	$(RM) $(APP)-$(VERSION)
	gzip $(APP)-$(VERSION).tar
	$(MV) $(APP)-$(VERSION).tar.gz $(APP)-$(VERSION).tgz 

DependTarget()

.DONE :
	@echo "Hurrah!"

.FAILED :
	@echo "Bummer!"