aboutsummaryrefslogtreecommitdiffstats
path: root/examples/X11/qt/simplefrontend/Makefile
blob: 0bfdf5e2c7b0f6814c9d4a8fa987aeab9efc26a4 (plain) (blame)
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


CC = /usr/bin/egcs
CFLAGS = -g -I$(QTDIR)/include -I/usr/lib/qt/include -I../../../../include
LFLAGS = -L$(QTDIR)/lib -lqt -L/usr/X11R6/lib -lXext -lX11 -L../../../../lib -lsword -lstdc++

MOCSRC = ./simplefrontend/SimpleFrontEndProject.h 
MOC_CC = ./hSimpleFrontEndProject.cpp 
MOC_OBJ = ./hSimpleFrontEndProject.o 

SRC = ./SimpleFrontEndProject.cpp ./main.cpp 
OBJ = $(MOC_CC) ./SimpleFrontEndProject.o ./main.o  
TARGET = simplefrontend
.SUFFIXES: .cpp

.cpp.o: $(SRC)
	$(CC) $(CFLAGS) -c $*.cpp -o $@

all: $(TARGET)

tarclean:
	rm -f $(TARGET) core

clean:
	rm -f $(OBJ) $(MOC_CC) $(TARGET)

distclean: clean
	rm -f core *~ $(TARGET)

$(TARGET): tarclean $(MOC_CC) $(OBJ)
	rm -f $(TARGET)
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJ) $(LFLAGS)

./hSimpleFrontEndProject.cpp: ./SimpleFrontEndProject.h
	moc ./SimpleFrontEndProject.h -o ./hSimpleFrontEndProject.cpp

./SimpleFrontEndProject.o: ./SimpleFrontEndProject.h

just-clean: clean
just-pre:

just-targets: $(TARGET)