Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hello.h:
- #ifndef hw_hello
- #define hw_hello
- void f();
- #endif
- hello.c:
- #include <stdio.h>
- #include <math.h>
- void f(){
- printf("kocham martwa babcie");
- printf("2*2 jest %f\n", pow(2,2));}
- main.c:
- #include "hw_hello.h"
- int main(){
- f();
- return 0;
- }
- makefile:
- .PHONY: clean
- all: kurwadajciezyc
- kurwaadjciezyc: hw_main.o
- gcc -o kurwadjciezyc hw_main.o
- hw_main.o: hw_main.c hw_hello.h
- gcc -c hw_main.c
- hw_hello.o: hw_hello.c hw_hello.h
- gcc -c hw_hello.c
- clean:
- rm -f *.o *.a *.so kurwadajciezyc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement