diff options
author | FreeArtMan <=> | 2015-11-07 18:16:23 +0000 |
---|---|---|
committer | FreeArtMan <=> | 2015-11-07 18:16:23 +0000 |
commit | 9514d70e98fa7f8fa26f991586169b9da09e7ea6 (patch) | |
tree | 766a038aaf8a0a51e8de9048778f1e4333d96eaa /Makefile | |
download | netbytes-9514d70e98fa7f8fa26f991586169b9da09e7ea6.tar.gz netbytes-9514d70e98fa7f8fa26f991586169b9da09e7ea6.zip |
Inititial commit
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..0b097c1 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +PROJ=libnetbytes +CC=gcc +CFLAGS= +LDFLAGS= + +SOURCE=netbytes +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 |