makelib: step 1