File: Makefile

package info (click to toggle)
menu 2.1.5-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,476 kB
  • ctags: 1,251
  • sloc: cpp: 6,222; ansic: 2,306; sh: 453; makefile: 296; sed: 93
file content (37 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (2)
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
CPPFLAGS=-I..
CXXFLAGS=-pg -g -Wall

all: menu-method

menu-method.o: menu-method.h menu-method.cc ../adstring.h ../common.h
	rm -f menu-method.o
	g++ $(CPPFLAGS) $(CXXFLAGS) -c  -o menu-method.o menu-method.cc

menu-method: menu-method.o ../adstring.o hints.o menu-tree.o 
	rm -f menu-method
	g++ -o menu-method $(CXXFLAGS) menu-method.o menu-tree.o\
	       hints.o ../adstring.o -lstdc++

static: menu-method.o ../adstring.o
	rm -f menu-method
	g++ -o static $(CXXFLAGS) menu-method.o ../adstring.o\
	     -lc -Wl,-static -lstdc++

adstring.o:../adstring.h ../adstring.cc
	make -C .. adstring.o 

clean   :
	rm -f *.o hintstest menu-method core static 2

backup : clean
	tar -cvzf $$GM0HOME/menu.tar.gz *

hintstest :hints.o hintstest.o
	g++ -g -Wall -o hintstest hints.o hintstest.o

hints.o: hints.h hints.cc ../adstring.h

hintstest.o: hints.h hintstest.cc

menu-tree.o: hints.h menu-tree.cc menu-tree.h menu-method.h ../common.h