X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=Makefile;h=201c3be87eb2d0971f6062f16f7fcce257f32808;hb=bc59f3d8b10c8a3a314cac6c2e094e71cc9ee246;hp=3fdbbe9179aa683852923209563bee8e3c2e79d3;hpb=ee1fe605ce0df9c05db0aa557a1ecece7686caae;p=mnenc diff --git a/Makefile b/Makefile index 3fdbbe9..201c3be 100755 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ -encryptor : main.o password.o mnenc.o - g++ -o mnenc -g -Wall main.o password.o mnenc.o +CC=g++ +CFLAGS=-c -g -Wall -fno-stack-protector +CCFLAGS=-g -Wall +LDFLAGS=-o +mnencd : mnencd.o php.o + $(CC) $(LDFLAGS) mnencd $(CCFLAGS) mnencd.o php.o -lmnenc -main.o: main.cpp password.hpp mnenc.hpp - g++ -c -g -Wall main.cpp +mnencd.o: mnencd.cpp mnencd.hpp php.hpp + $(CC) $(CFLAGS) mnencd.cpp -lmnenc + +php.o: php.cpp php.hpp + $(CC) $(CFLAGS) php.cpp -password.o: password.cpp password.hpp - g++ -c -g -Wall password.cpp - -encryptor.o: mnenc.cpp mnenc.hpp - g++ -c -g -Wall mnenc.cpp - clean: - rm *.o mnenc + rm *.o mnencd