diff options
author | FreeArtMan <=> | 2016-01-24 13:13:09 +0000 |
---|---|---|
committer | FreeArtMan <=> | 2016-01-24 13:13:09 +0000 |
commit | 14ff7106da7e79432a85805e8ce49296f1cf9216 (patch) | |
tree | 02c100de21977c7222535e528c5348d988bd6dd1 /Makefile | |
download | libarg-14ff7106da7e79432a85805e8ce49296f1cf9216.tar.gz libarg-14ff7106da7e79432a85805e8ce49296f1cf9216.zip |
Initial
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..71d41c0 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +PROJ=libarg +CC=gcc +CFLAGS=-g3 +LDFLAGS= + +SOURCE=arg +OBJECTS=$(SOURCE:=.o) +SOURCES=$(SOURCE:=.c) + +%.o: %.c + $(CC) $(CFLAGS) -c $< + +make: dynamic static + +dynamic: CFLAGS+=-fPIC +dynamic: clean $(OBJECTS) + $(CC) $(CFLAGS) $(OBJECTS) -shared -o $(PROJ).so + +static: clean $(OBJECTS) + ar rcs $(PROJ).a $(OBJECTS) + + +clean: + rm -rf *.o + rm -rf *.a + rm -rf *.so
\ No newline at end of file |