Commit 1ea8daa6 authored by Paul Tvete's avatar Paul Tvete

Translate to qmake

parent 4bd4c477
####### This section is automatically generated from
####### /home/hanord/qt/tutorial/Makefile
INCDIR = $(QTDIR)/include
CFLAGS = -O2
LFLAGS = -L$(QTDIR)/lib -lqt
CC = gcc
MOC = moc
####### End of automatically generated section
#
# $Source: /tmp/cvs/qt/tutorial/t14/Makefile,v $
#
####### Files
HEADERS = lcdrange.h cannon.h gamebrd.h
SOURCES = lcdrange.cpp cannon.cpp gamebrd.cpp main.cpp
OBJECTS = lcdrange.o cannon.o gamebrd.o main.o
SRCMETA = mlcdrang.cpp mcannon.cpp mgamebr.cpp
OBJMETA = mlcdrang.o mcannon.o mgamebr.o
TARGET = t14
####### Implicit rules
.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $(CFLAGS) -I$(INCDIR) $<
####### Build rules
all: $(TARGET)
$(TARGET): $(OBJECTS) $(OBJMETA)
$(CC) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS) -lm
depend:
@makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null
showfiles:
@echo $(HEADERS) $(SOURCES) Makefile
clean:
rm -f *.o *.bak *~ *% #*
rm -f $(SRCMETA) $(TARGET)
####### Meta classes
mlcdrang.cpp: lcdrange.h
$(MOC) -o $@ lcdrange.h
mcannon.cpp: cannon.h
$(MOC) -o $@ cannon.h
mgamebr.cpp: gamebrd.h
$(MOC) -o $@ gamebrd.h
# DO NOT DELETE THIS LINE -- make depend depends on it.
#############################################################################
# Generated by tmake at 15:26, 1996/10/10
# Project: t14.p
# Template: e:\tmake\template\win\msvc\qtapp.t
#############################################################################
####### Directories
BASEDIR = $(QTDIR)
INCDIR = $(BASEDIR)\include
LIBDIR = $(BASEDIR)\lib
####### Compiler
CFLAGS = -Zi -nologo
LFLAGS = $(LIBDIR)\qt.lib user32.lib gdi32.lib comdlg32.lib libc.lib
CC = cl
MOC = moc
LINK = link /DEBUG /SUBSYSTEM:windows /NODEFAULTLIB:libcd.lib
####### Files
HEADERS = cannon.h \
gamebrd.h \
lcdrange.h
SOURCES = cannon.cpp \
gamebrd.cpp \
lcdrange.cpp \
main.cpp
OBJECTS = cannon.obj \
gamebrd.obj \
lcdrange.obj \
main.obj
SRCMETA = moc_cannon.cpp \
moc_gamebrd.cpp \
moc_lcdrange.cpp
OBJMETA = moc_cannon.obj \
moc_gamebrd.obj \
moc_lcdrange.obj
TARGET = t14.exe
####### Implicit rules
.SUFFIXES: .cpp
.cpp.obj:
$(CC) -c $(CFLAGS) -I$(INCDIR) -Fo$@ $<
####### Build rules
all: $(TARGET)
$(TARGET): $(OBJECTS) $(OBJMETA) $(LIBDIR)\qt.lib
$(LINK) -OUT:$(TARGET) $(OBJECTS) $(OBJMETA) $(LFLAGS)
mocify: $(SRCMETA)
clean:
del $(OBJECTS) $(OBJMETA) $(SRCMETA)
####### Compile
cannon.obj: cannon.cpp \
cannon.h
gamebrd.obj: gamebrd.cpp \
gamebrd.h \
lcdrange.h \
cannon.h
lcdrange.obj: lcdrange.cpp \
lcdrange.h
main.obj: main.cpp \
gamebrd.h \
lcdrange.h \
cannon.h
moc_cannon.cpp: cannon.h
$(MOC) cannon.h -o moc_cannon.cpp
moc_gamebrd.cpp: gamebrd.h
$(MOC) gamebrd.h -o moc_gamebrd.cpp
moc_lcdrange.cpp: lcdrange.h
$(MOC) lcdrange.h -o moc_lcdrange.cpp
TEMPLATE = qtapp
QT += widgets
HEADERS = cannon.h \
gamebrd.h \
lcdrange.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment