/**[txh]******************************************************************** Copyright (c) 2004 by Salvador E. Tropea. Covered by the GPL license. Description: MS lib have a really useless command line. This wrapper avoids all the complexities. Also: I failed to create a macro that expands to something that creates a response file. Looks like it only works outside macros. This program just collects the files from the specified directories and creates the library with all of them. ***************************************************************************/ #include #include #include #include #define MAX_FILE 256 int main(int argc, char *argv[]) { FILE *f; int i,ret; char *s; WIN32_FIND_DATA de; char dirMask[MAX_PATH+8]; HANDLE d; if (argc<3) { printf("MS lib wrapper\n"); printf("Copyright (c) 2004 by Salvador E. Tropea. GPL.\n"); printf("Usage: mlink lib list_obj_files\n"); return 1; } f=fopen("mslink.lnk","wt"); if (!f) { printf("Can't create response file\n"); return 2; } for (i=2; i