| HELPER_SRCS=win/fsatracehelper.c |
| SRCS32=src/win/fsatracedll.c src/win/inject.c src/win/patch.c src/win/hooks.c src/emit.c src/win/shm.c src/win/handle.c src/win/utf8.c src/win/dbg.c |
| SRCS64=$(SRCS32) |
| HELPER_OBJ=src/win/fsatracehelper32.o |
| OBJS64=$(patsubst %.c,%.o,$(SRCS64)) |
| OBJS32=$(patsubst %.c,%32.o,$(SRCS32)) |
| DEPS64=$(patsubst %.o,%.d,$(OBJS64)) |
| DEPS32=$(patsubst %.o,%.d,$(OBJS32) $(HELPER_OBJ)) |
| LDLIBS=-lntdll -lpsapi |
| |
| lib: fsatrace32.dll fsatrace64.dll fsatracehelper.exe |
| all: fsatest32.exe |
| |
| %32.o: %.c |
| $(CC32) -c $(CPPFLAGS32) $(CFLAGS) -march=i686 $< -o $@ |
| |
| fsatracehelper.exe: $(HELPER_OBJ) |
| $(CC32) $(LDFLAGS) $< -o $@ |
| |
| fsatest32.exe: src/fsatest32.o |
| $(CC32) $(LDFLAGS) $< -o $@ |
| |
| fsatrace64.dll: $(OBJS64) |
| $(CC) -shared $(LDFLAGS64) $^ -o $@ $(LDLIBS) |
| |
| fsatrace32.dll: $(OBJS32) |
| $(CC32) -shared $(LDFLAGS32) $^ -o $@ $(LDLIBS) |
| |
| libinstall: fsatracehelper.exe fsatrace64.dll fsatrace32.dll |
| cp fsatracehelper.exe fsatrace64.dll fsatrace32.dll $(INSTALLDIR) |
| |
| cleanlib: |
| rm -f src/win/fsatracehelper32.o fsatracehelper.exe fsatrace64.dll fsatrace32.dll $(OBJS64) $(OBJS32) $(DEPS64) $(DEPS32) |
| |
| -include $(DEPS64) |
| -include $(DEPS32) |