Browse Source

Makefile mods and removed old script.

master
Maximilian Stiefel 6 years ago
parent
commit
d75841ba47
  1. 7
      Makefile
  2. 12
      compile_and_install_ubuntu.sh

7
Makefile

@ -3,6 +3,7 @@ CFLAGS=-Wall -c -g
DICT_DIR=./dict
LFLAGS=-lcurl -lcurlpp -g -Wall
INST_FILE=/usr/local/bin/dictcc
TARGET=dictcc
dict : deen.o desv.o dict_imp.o dictcc.o make_lib
deen.o :
@ -14,8 +15,8 @@ dict_imp.o :
dictcc.o :
$(CC) $(CFLAGS) dictcc.cc
make_lib :
$(CC) dictcc.o deen.o desv.o dict_imp.o -o dictcc $(LFLAGS)
$(CC) dictcc.o deen.o desv.o dict_imp.o -o $(TARGET) $(LFLAGS)
install:
sudo ln -s $(PWD)/dictcc $(INST_FILE)
sudo ln -s $(PWD)/$(TARGET) $(INST_FILE)
clean :
rm *.o
rm *.o rm $(TARGET)

12
compile_and_install_ubuntu.sh

@ -1,12 +0,0 @@
#!/bin/sh
COMPILE_CMD="g++ dict/*.cc dictcc.cc -o dictcc -lcurl -lcurlpp -g"
INST_FILE="/usr/local/bin/dictcc"
INST_CMD="sudo ln -s $PWD/dictcc $INST_FILE"
echo "Compiling ... "
$COMPILE_CMD
echo "Installing ..."
if [ ! -f "$INST_FILE" ]
then
$INST_CMD
fi
rm dictcc
Loading…
Cancel
Save