#include
//#include
#include "func.h"
#include "my.h"
int main(void){
char * say ="hello, world\n";
printf("%s \n" ,say);
func();
//printf("%f\n",log(1000));
return 0;
}
func.c
#include
int func (void){
printf("come from func");
return 0;
}
func.h
#include
int func (void);
my.h
#define NUMBER 1024
Makefile
CC=gcc
all: hello
func.o: func.c func.h
$(CC) $(OPT) -c func.c
echo "1=$@ 2=$< 3="$?" 4="$^" 1="$@" 2="$<" 3="$?" 4="$^" 1="$@" 2="$<" 3="$?" 4="$^" 1="$@" 2="$<" 3="$?" 4="$^">
沒有留言:
張貼留言