File: Makefile

package info (click to toggle)
evms 1.0.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,168 kB
  • ctags: 5,853
  • sloc: ansic: 87,317; makefile: 691; sh: 238
file content (41 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
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
# EVMS Graphical User Interface

include ../../make.rules

NAME	= evmsgui

MAJOR_VERSION   = 1
MINOR_VERSION   = 0
PATCH_LEVEL     = 0

TARGET	= $(NAME)
SRCS	:= $(shell ls *.c)
OBJS	:= $(shell ls *.c | sed s/\\.c/\\.o/)
INCLUDES += $(GTK_CFLAGS)

all: .depend $(TARGET)

install: all
	../../mkinstalldirs.sh $(DESTDIR)$(sbindir)
	$(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(sbindir)

uninstall:
	rm -f $(DESTDIR)$(sbindir)/$(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(LIBDIRS) $(GTK_LIBS) $(EFENCE) -ldlist -levms -o $(TARGET) $(OBJS)

clean:
	rm -f .depend *.o $(TARGET)

distclean: clean

.depend:
	$(CPP) -M $(EVMSCFLAGS) *.c > .depend

dep: .depend

# grab our dep file
ifeq (.depend,$(wildcard .depend))
include .depend
endif