Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = gcc
- CFLAGS = -Wall
- LDFLAGS = -L.
- all: main_static
- main_static:
- gcc main.c -I. -lhexdump_static
- libhexdump_static.a:
- ar rc libhexdump_static.a hexdump.o sample.o
- main.o: main.c
- gcc -c main.c
- hexdump.o: hexdump.c
- gcc -c hexdump.c
- sample.o: sample.c
- gcc -c sample.c
- .PHONY: all clean
- clean:
- rm -f *.o main_static libhexdump_static.a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement