Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OPTIONS= -c -g -ansi -O2 -pedantic -Wall -Wstrict-prototypes -DTHREADSAFE
- .SUFFIXES: .c .o
- CC=gcc
- %.o: %.c
- $(CC) $(OPTIONS) $< -o $@
- LIBS= -lm -lc
- all: prog1
- depend:
- makedepend -- prog1.c
- clean:
- rm -f *~
- rm -f core
- rm -f *.o
- rm -f prog1
- prog1: prog1.o minishell.o
- $(CC) $(LIBS) prog1.o minishell.o -o prog1
- #
- #Assuming that you have 3 files, for example, prog1.c, minishell.h,
- #and minishell.c, the following command will make a compressed tarball.
- #
- #make prepare
- #
- prepare:
- tar cvf - prog1.c minishell.h minishell.c | gzip > prog1.tgz
- # DO NOT DELETE THIS LINE -- make depend depends on it.
Add Comment
Please, Sign In to add comment