Created
June 27, 2012 21:05
-
-
Save listx/3006843 to your computer and use it in GitHub Desktop.
libyaml makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = gcc | |
CFLAGS = -shared | |
OBJECTS = api.o dumper.o emitter.o loader.o parser.o reader.o scanner.o writer.o | |
LIB = libyaml.so | |
LFLAGS = -shared -Wl,-soname,libyaml.so | |
%.o: %.c | |
$(CC) $(CFLAGS) -c -fPIC $< | |
yaml: $(OBJECTS) | |
$(CC) $(LFLAGS) -o libyaml.so $(OBJECTS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment