---
title: "makefile制作方法--学习笔记"
author: "microjava"
date: "2009-12-08T10:19:43Z"
tags: []
slug: "makefile"
draft: false
lastmod: "2009-12-08T10:19:43Z"
id: 543869
url: "https://microjava.iteye.com/blog/543869"
---

makefile制作方法
vi hello.cpp


```Java

#include<iostream.h>
int main()
{
  cout<<"Welcome to microjava home."<<endl;
  return 0;
}

```


wc hello.cpp
qmake -project
qmake/qmake Makefile
make
./hello

vi hello.c


```C

#include <stdio.h>
int main()
{
 printf("Welcome to china.");
 return 0;
}

```


qmake -project
qmake
make
./hello