Commits

Ravindra Nath kakarla  committed f0aa971

Fixed Makefile

  • Participants
  • Parent commits 56abeda

Comments (0)

Files changed (2)

 Installing SMSBOT
 -----------------
 
-	./configure
 	make
-	sudo make install
-	./setup
 LIBS=cJSON.o regexp.o
 SRCDIR=src/
 BUILD=build/
-CFLAGS=-Wall -ggdb -lm $(BUILD)regexp.o $(BUILD)cJSON.o -I include/ -o
-CLIBFLAGS=-Wall -ggdb -c -I include/ -o
+CFLAGS=-Wall -ggdb $(BUILD)regexp.o $(BUILD)cJSON.o -lm -I include/
+CLIBFLAGS=-Wall -ggdb -c -I include/
+OUTPUT=-o
 OUTFILE=readsms
 buildall:
 	mkdir -p $(BUILD)
-	$(CC) $(SRCDIR)cJSON.c $(CLIBFLAGS) $(BUILD)cJSON.o
-	$(CC) $(SRCDIR)regexp.c $(CLIBFLAGS) $(BUILD)regexp.o
-	$(CC) $(SRCDIR)readsms.c $(CFLAGS) $(OUTFILE)
+	$(CC) $(SRCDIR)cJSON.c $(CLIBFLAGS) $(OUTPUT)$(BUILD)cJSON.o
+	$(CC) $(SRCDIR)regexp.c $(CLIBFLAGS) $(OUTPUT)$(BUILD)regexp.o
+	$(CC) $(CFLAGS) $(SRCDIR)readsms.c $(OUTPUT)$(OUTFILE)
 cJSON: 
-	$(CC) $(SRCDIR)cJSON.c $(CLIBFLAGS) $(BUILD)cJSON.o
+	$(CC) $(SRCDIR)cJSON.c $(CLIBFLAGS) $(OUTPUT)$(BUILD)cJSON.o
 regexp:
-	$(CC) $(SRCDIR)regexp.c $(CLIBFLAGS) $(BUILD)regexp.o
+	$(CC) $(SRCDIR)regexp.c $(CLIBFLAGS) $(OUTPUT)$(BUILD)regexp.o
 all:
-	$(CC) $(SRCDIR)readsms.c $(CFLAGS) $(OUTFILE)
+	$(CC) $(CFLAGS) $(SRCDIR)readsms.c $(OUTPUT)$(OUTFILE)
 clean:
 	rm -rf $(BUILD) $(OUTFILE)