Browse Source

update with makefiles

master
Jacob Still 6 months ago
parent
commit
23ec503c6e
Signed by: jcstill GPG Key ID: 9FA6C3681688446C
  1. 25
      List/Makefile
  2. 25
      Queue/Makefile
  3. 25
      Stack/Makefile
  4. 25
      String/Makefile
  5. 25
      Vector/Makefile

25
List/Makefile

@ -0,0 +1,25 @@
# Compiler Specific:
COMP=g++
CFLAG=-c
WFLAG=-Wall
OFLAG=-o
# Program Specific:
SOURCES= Driver.cpp
OBJECTS=$(SOURCES:.cpp=.o)
HEADERS=$(SOURCES:.cpp=.h)
EXECUTABLE=Driver
# Start of Make:
Start: clean $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(COMP) $(OBJECTS) $(OFLAG) $@ $(WFLAG)
.cpp.o:
$(COMP) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
# Cleanup Routines:
clean:
rm -f $(OBJECTS) $(EXECUTABLE)

25
Queue/Makefile

@ -0,0 +1,25 @@
# Compiler Specific:
COMP=g++
CFLAG=-c
WFLAG=-Wall
OFLAG=-o
# Program Specific:
SOURCES= Driver.cpp
OBJECTS=$(SOURCES:.cpp=.o)
HEADERS=$(SOURCES:.cpp=.h)
EXECUTABLE=Driver
# Start of Make:
Start: clean $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(COMP) $(OBJECTS) $(OFLAG) $@ $(WFLAG)
.cpp.o:
$(COMP) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
# Cleanup Routines:
clean:
rm -f $(OBJECTS) $(EXECUTABLE)

25
Stack/Makefile

@ -0,0 +1,25 @@
# Compiler Specific:
COMP=g++
CFLAG=-c
WFLAG=-Wall
OFLAG=-o
# Program Specific:
SOURCES= Driver.cpp
OBJECTS=$(SOURCES:.cpp=.o)
HEADERS=$(SOURCES:.cpp=.h)
EXECUTABLE=Driver
# Start of Make:
Start: clean $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(COMP) $(OBJECTS) $(OFLAG) $@ $(WFLAG)
.cpp.o:
$(COMP) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
# Cleanup Routines:
clean:
rm -f $(OBJECTS) $(EXECUTABLE)

25
String/Makefile

@ -0,0 +1,25 @@
# Compiler Specific:
COMP=g++
CFLAG=-c
WFLAG=-Wall
OFLAG=-o
# Program Specific:
SOURCES= driver.cpp
OBJECTS=$(SOURCES:.cpp=.o)
HEADERS=$(SOURCES:.cpp=.h)
EXECUTABLE=Driver
# Start of Make:
Start: clean $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(COMP) $(OBJECTS) $(OFLAG) $@ $(WFLAG)
.cpp.o:
$(COMP) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
# Cleanup Routines:
clean:
rm -f $(OBJECTS) $(EXECUTABLE)

25
Vector/Makefile

@ -0,0 +1,25 @@
# Compiler Specific:
COMP=g++
CFLAG=-c
WFLAG=-Wall
OFLAG=-o
# Program Specific:
SOURCES= Driver.cpp
OBJECTS=$(SOURCES:.cpp=.o)
HEADERS=$(SOURCES:.cpp=.h)
EXECUTABLE=Driver
# Start of Make:
Start: clean $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(COMP) $(OBJECTS) $(OFLAG) $@ $(WFLAG)
.cpp.o:
$(COMP) $(CFLAG) $< $(OFLAG) $@ $(WFLAG)
# Cleanup Routines:
clean:
rm -f $(OBJECTS) $(EXECUTABLE)
Loading…
Cancel
Save