| 1 | # This worked for me |
| 2 | # Sorry if it doesn't work for you, but I don't know how to write Makefiles. |
| 3 | # After all, I'm only a windows user. |
| 4 | # I would've liked to test it on linux, but I couldn't find the Start button. |
| 5 | |
| 6 | TARGET=TXT2CPT |
| 7 | OBJS=AsciiCptCompile.o cptcompiler.o cpthelp.o idFinder.o KmpSearch.o stdafx.o TextFile.o |
| 8 | |
| 9 | all: $(TARGET) |
| 10 | |
| 11 | clean: |
| 12 | rm -f $(TARGET) $(OBJS) |
| 13 | |
| 14 | $(TARGET): $(OBJS) |
| 15 | $(CC) $(OBJS) $(LDFLAGS) -o $(TARGET) |
| 16 | |
| 17 | %.o: %.cpp |
| 18 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ |