Makefile-flat 569 B

12345678910111213141516171819
  1. #
  2. # Makefile -- Build It Makefile to build Embedthis GoAhead for macosx on x86_64
  3. #
  4. CFLAGS := -g -w
  5. LDFLAGS := -L. -Wl,-rpath,@executable_path/../lib -Wl,-rpath,@executable_path/ -Wl,-rpath,@loader_path/
  6. LIBS := -lpthread -lm -ldl -lpam
  7. all: libgo.dylib goahead
  8. libgo.dylib: goaheadLib.o deps.o pcre.o sqlite3.o
  9. cc -o libgo.dylib -dynamiclib $(CFLAGS) $(DFLAGS) $(LDFLAGS) goaheadLib.o deps.o pcre.o sqlite3.o $(LIBS)
  10. goahead: libgo.dylib
  11. cc -o goahead $(LDFLAGS) goahead.c -lgoahead $(LIBS)
  12. clean:
  13. rm goahead libgo.dylib *.o
  14. rm -fr *.dSYM